XPath - Cannot find the object (KeywordTest)
Hi,
For several days, TestComplete often does not find several objects. I record a test and I run it and some objects are not found even if I put auto-wait or delay.
In some cases, I've test my XPath in Chrome's console and my XPath works but when put in a selector of a mapping in TestComplete it doesn't work.
Example :
I'm trying to acces a button that have no id that I can use because it's auto-generated and it changes all the time.
Here is a the part of the html that contains the button. You can se that the button has a class named "icon-show-datebooks" and it's included in a table that has an Id = "btnShowDatebooks"
If I use the commande $x in chrome with the following XPath, chrome has no problem finding it. But TestComplete don't
I have also tried in TestComplete the following Xpath to find the button include in the table that has an Id, but it doesn't work also (bit it works in the console of chrome) :
//table[@id='btnShowDatebooks']//button
I have tried also the full XPath created by Chrome and it doesn't work also :
/html/body/div[1]/div/div[1]/div/table/tbody/tr/td[1]/table/tbody/tr/td[7]/table/tbody/tr[2]/td[2]/em/button
The selectors in TestComplete :
I don't know anymore want to do. If I cannot wrote XPath manually in the selectors of TestComplete, I'm in trouble.
Help please!
Thanks!