how to use xpath for the following case
.//*[@Kadyn .//*[@id='colDiv_Apr282014']/div/div .//*[@id='colDiv_Apr282014']/div/div
In the xpath above, you can see the value inside the first div-is getting changed everytime. ts not constant. I want to use a comman xpath format for the above case so that I can execute the test cases 20 times. How can this be done?
Following is the screenshot of how the page looks.
This is not an answer, but I cannot comment yet, so please no downvotes.
There were few views of this question, no answers, and unlikely any answer is coming. See:
- Best Practices for Selenium locators prefers to use ID, Name or CSS over XPATH.
- This locator comparison says XPATH is slower and brittle, especially in IE.
So non-answer is: "don't do that"
Can you change page/ask it to be changed?