I'm trying to get the text from a table on the website. This is a dynamic one and the xpath id changes every time. Kindly provide me some leads to how to handle this.
id <font color="red">('course_1000928572')</font> /td/table/tbody/tr/td
Assuming there are more than one course_. I would use a reference to a higher level in the xpath.
(e.g.) div[@class='Feature_Course']/(text to extract)/td/table/tbody/tr/td
Its a vague answer to a vague question. If you provide more detail as to the source code maybe a better answer can be provided.
ALM 11.0 Patch: 12
PC 11.0 Patch: 7
Vugen 11.0 Patch: 4
This is the Xpath I get from the Xpath Checker
I'm not sure whether the below is the right way to use it
We need to see the source or part of it, the Xpath Checker is giving you the value for that exact value which obviously wont work since the next time u try it wont be the same.
There are other strategies to locating or getting that text if you at least know what level it has to be on each time.
It worked after I changed the Xpath as below