Skip to Content
Menu
This question has been flagged
1 Reply
5243 Views

h all i have a wizard on which i have already two buttons and i want to add a third one using xpath,,but somehow its not working,,,,the buttons there are added by following code



<footer> 
<button string = "Save" type = "object" class = "oe_highlight" name = "write" />
<button string = "Cancel" class = "oe_link" special = "cancel" />
 </ footer>
and am giving xpath as:


<xpath expr = "// button [@ name = 'write']" position = "before"> <button string = "Save and Print" type = "object" class = "oe_highlight" name = "write_company_and_print_report" /> </ xpath>

whats the problem plz?
Avatar
Discard
Best Answer

try this code :

<xpath expr="//footer" position="inside">

 <button string="Save and Print"  type="object" class="oe_highlight" name="write_company_and_print_report"/>

</xpath>




Avatar
Discard