</table>
<% if is_admin %>
<% if rule.template? %>
- <%= button_to "Copy rule", :action => 'new', :id => profile.id, :rule_id => rule.id %>
+ <%= button_to "Copy rule", {:action => 'new', :id => profile.id, :rule_id => rule.id}, :id => "copy-#{u rule.key}" %>
<% end %>
<% if rule.editable? %>
- <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id -%>
+ <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id %>
<% end %>
<% end %>
</div>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="" />
+<link rel="selenium.base" href="http://localhost:9000/" />
<title>copy_and_edit_rule_template</title>
</head>
<body>
</tr>
<tr>
<td>clickAndWait</td>
- <td>link=Copy rule</td>
+ <td>copy-pmd%3AXPathRule</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>clickAndWait</td>
- <td>link=Edit rule</td>
+ <td>//input[@value='Edit rule']</td>
<td></td>
</tr>
<tr>