question

voliveira avatar image
voliveira asked voliveira posted

HTTP - Cannot get a target ID because is has a dynamic ID

Hello to all,

 

I am trying to get a value from a table in a Zyxel firewal. This table has a dynamic ID each I log in.

 

I'am not able to get a static reference in order to reuse it when replaying the testcase.

 

How can I do this?

 

Even if I take a snapshot and get the html code I can find where the table ID is but I cannot put that value in a variable.

 

Any help is much appreciated.

 

Thanks and regards,

 

Vitor

iTestGUI Testing(Web-Java Swing-etc)
Zyxel_FW_5.fftc (4.6 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
pkomari avatar image
pkomari answered pkomari posted

Hi ,

 

we can store table id in variable, first get the snapshot of the table then go to structure view and select particular table, right click on table id and store in the respective variable in the test case using query analysis rule .

 

If table id is dynamic then every time you have to do snapshot and get the table id before you process the table 

 

I have attached the snapshot , just check in that snapshot

 

 

Thanks,

Prasad


gettableId2.JPG (117.6 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.