xpath for Button (desired selection)

26 views
Skip to first unread message

5 2

unread,
Apr 27, 2024, 5:53:09 PMApr 27
to Auto Clicker - AutoFill
Hi,

//input[@name="chooseNr"][@id="chooseNr"][@value="Izvēlēties"]

this is auto configured xpath by Autoclik extension - if i press it from web page but this xpath is same for every other button (WJ16,WJ26WJ35 etc) - for every selected value, please help me adjust this xpath so that it includes desired value of needed selection, for example with value for button WJ35

-----------------------------------------------------------------------------------------------------------------------------------
Below is the php from webpage
-----------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>

</div><div class="table-wrapper"><table class="table-list" border="0"><tbody><tr><th class="value" colspan="3"><b>Pieejamie nākamās sērijas numuri:</b><br>
Ja izvēlaties pieteikt kādu no sarakstā minētajiem numuriem, pie konkrētā numura atzīmējiet “Izvēlēties”
</th></tr><tr><td class="value">1</td><td class="value">WJ16</td>
<td class="value">
<form name="uniforma_WJ16" id="uniforma_WJ16" .="" method="POST">
<input type="hidden" name="chosenNR" id="chosenNR" value="WJ16">
<input type="hidden" name="nrSeries" id="nrSeries" value="WJ">
<input type="hidden" name="seriesType" id="seriesType" value="">
<input class="button" name="chooseNr" id="chooseNr" type="submit" value="Izvēlēties">
</form>
</td></tr><tr><td class="value">2</td><td class="value">WJ26</td>
<td class="value">
<form name="uniforma_WJ26" id="uniforma_WJ26" .="" method="POST">
<input type="hidden" name="chosenNR" id="chosenNR" value="WJ26">
<input type="hidden" name="nrSeries" id="nrSeries" value="WJ">
<input type="hidden" name="seriesType" id="seriesType" value="">
<input class="button" name="chooseNr" id="chooseNr" type="submit" value="Izvēlēties">
</form>
</td></tr><tr><td class="value">3</td><td class="value">WJ34</td>
<td class="value">
<form name="uniforma_WJ34" id="uniforma_WJ34" .="" method="POST">
<input type="hidden" name="chosenNR" id="chosenNR" value="WJ34">
<input type="hidden" name="nrSeries" id="nrSeries" value="WJ">
<input type="hidden" name="seriesType" id="seriesType" value="">
<input class="button" name="chooseNr" id="chooseNr" type="submit" value="Izvēlēties">
</form>

Here is also image, how it looks on web:

buttons.png

Thank You in advance, Karlis

Dhruv TechApps

unread,
Apr 27, 2024, 11:42:23 PMApr 27
to Auto Clicker - AutoFill
its in table format try 

//form[@id="uniforma_WJ26"]//input[@name="chooseNr"][@id="chooseNr"][@value="Izvēlēties"]

//form[contains(@id,"uniforma_WJ26")]//input[@name="chooseNr"][@id="chooseNr"][@value="Izvēlēties"]
Reply all
Reply to author
Forward
0 new messages