Forum Discussion
Hi,
> FindElement also doesn't work. Not sure what is the reason
Can you post a screenshot of the code and log?
> if I uncheck the 'Use Xpath and css selectors' property , will FindChildByXpath work?
Yes, it should, but this will disable cross-platform mode and switch back to default local one. (So you will not be able to execute your tests in CrossBrowserTesting and other cloud environments.)
> Sys.Browser("chrome").Page(...).FindChildByXPath(...);
Another possible reason is that page was not navigated to.
or
Sys.Browser("chrome").Page("*").FindElement("//button");
- Gunacelan4 years agoContributor
I believe I understood the issue here,
the same methods FindElement and FindChildByXPath works for other web pages in the same URL.
I doesn't work only in the initial page I think which might be due to security issue.
Can someone help me with this?
- AlexKaras4 years agoChampion Level 3
Hi,
Yes, correct, this is security issue with Chrome (https://community.smartbear.com/t5/TestComplete-Functional-Web/Testcomplete-Firefox/m-p/215982/highlight/true#M37951) and I think that you will need to add your tested site to the allowed exceptions list.
- Gunacelan4 years agoContributor
How to access buttons and links in this below page through testcomplete?
Related Content
- 5 years agouserdanfoss
- 5 years agoaa1
- 2 years agomattb