Reputation: 315
My html page code looks like below with zero to multiple buttons shown below
<input type="submit" value="Amend" onclick="jQuery('#adjust_item_id').val(1234); setAction(this.form, 'adjust',0,null, 1);">
The html can have multiple buttons as above and fixed buttons as below.
Addition to above button/s, there are more fixed buttons on the page shown below.
Depending on how many buttons shows up on the page the POS of the below buttons also change
<div class="xyz-buttons">
<input value="Back" type="submit" onclick="setAction(this.form, 'back','0',null, '0');">
<input value="Clone" type="submit" onclick="setAction(this.form, 'clone','0',null, '1');">
<input value="FINISH" type="submit" onclick="setAction(this.form, 'save_validate','0',null, '1');" class="GreenButton">
I am trying to find the POS of the button "Clone" to repeat a task.
TAG POS=1 TYPE=DIV ATTR=CLASS:pfbc-buttons
TAG POS=R1 TYPE=INPUT:SUBMIT FORM=ID:FCLS7022 ATTR=ID:clone
I tried number of ways to find the POS of "Clone" button but to no avail.
Could someone please point me to the right direction to find the POS to simulate a click on the page please.
Upvotes: 0
Views: 481
Reputation: 315
Solved:
Used TAG but recorded the xpath with turning CSS style from imacros settings.
Upvotes: 0