Forum Discussion
AlexKaras
Champion Level 3
Hi,
Might it be the timing issue?
Does the problem exist if you insert some delay (e.g. aqUtils.Delay(5000); ) before the call to the problematic line?
tvklovesu
2 years agoFrequent Contributor
Hi AlexKaras,, no even adding delay it didn't find the object, but the object is with in viewpoint. If I use FindElements with complete xpath including the parent like below then it works and clicking on the element. Also In some cases the FindChildByXpath is taking long time to identify the element.
This works
FindElement("//div[@data-testid=\"searchResults\"]//div[@role=\"button\"]//descendant::*[contains(text(),\"name\")]").click()
instead of
NameMapping.Sys.browser.pageRavenCore.searchResults_row_Btn.FindChildByXPath('/*[contains(text(),"name")]').click()
Should I use any other method instead of FindChildByXPath
Related Content
- 3 months agoD0UG
- 5 years agoaa1
- 5 years agolingling_chiang
- 5 years agouserdanfoss
Recent Discussions
- 3 hours agoSvetaG