Solved Increase path attribute

andrea93

Member
HI,
I have to find a ticket number in a list on a site.
I spied on the first element making the path dynamic.
I make the first reading, I get the value and I check if that's what I want. If it is not conguous I have to increase the path, to move on to the next one
How can I do?

Path element 1
/HTML/BODY(1)/FORM(1)/TABLE(1)/TBODY(1)/TR(1)/TD(2)/TABLE(1)/TBODY(1)/TR(1)/TD(3)/TABLE(1)/TBODY(1)/TR(1)/TD(1)/DIV(1)/DIV(1)/TABLE(1)/TBODY(1)/TR(3)/TD(1)/TABLE(1)/TBODY(1)/TR(2)/TD(2)
Path element 2
/HTML/BODY(1)/FORM(1)/TABLE(1)/TBODY(1)/TR(1)/TD(2)/TABLE(1)/TBODY(1)/TR(1)/TD(3)/TABLE(1)/TBODY(1)/TR(1)/TD(1)/DIV(1)/DIV(1)/TABLE(1)/TBODY(1)/TR(3)/TD(1)/TABLE(1)/TBODY(1)/TR(3)/TD(2)
ecc..
 

Attachments

  • Cattura.PNG
    83.2 KB · Views: 14

jpcrepeau

Member
Create a number variable and add 1 to it every loop.

If your variable is called Number, your path will become

"/HTML/BODY(1)/FORM(1)/TABLE(1)/TBODY(1)/TR(1)/TD(2)/TABLE(1)/TBODY(1)/TR(1)/TD(3)/TABLE(1)/TBODY(1)/TR(1)/TD(1)/DIV(1)/DIV(1)/TABLE(1)/TBODY(1)/TR(3)/TD(1)/TABLE(1)/TBODY(1)/TR("&[Number]&")/TD(2)"
 
Top