Forum Discussion
Gunacelan
Contributor
1) I tried this without the checkbox "Use Xpath and css selectors" checked
Sys.Browser("chrome").Page(*).FindChildByXPath("//button[normalize-space(text())= 'Advanced']");
or
or
Sys.Browser("chrome").Page("*").findchildbyxpath(%22//button[normalize-space(text())='*').FindChildByXPath(%22//button[normalize-space(text())=" target="_blank" rel="noreferrer noopener">).FindChildByXPath("//button[normalize-space(text())= 'Advanced']");
2) I tried FindElement selecting the checkbox and Using the below code
Sys.Browser("chrome").Page("*").findchildbyxpath(%22//button[normalize-space(text())=" href=""*").FindChildByXPath(%22//button[normalize-space(text())=" target="_blank" rel="noreferrer noopener">*").FindChildByXPath("//button[normalize-space(text())= 'Advanced']").FindElement("//button");
or
Sys.Browser("chrome").Page("*").FindElement("//button");
Sys.Browser("chrome").Page("*").FindElement("//button");
Gunacelan
4 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.
Related Content
- 5 years agouserdanfoss
- 5 years agoaa1
- 2 years agomattb
Recent Discussions
- 2 days agoGane195