Forum Discussion
It is not possible to interact with elements on the "Your connection is not private" page in Chrome using TestComplete or any other automation tool, as the page is displayed in a special Chrome browser tab that is not accessible to external programs.
The buttons on this page, such as "Advanced" and "Back to Safety", are implemented using Chrome's native UI elements, which cannot be accessed or controlled using TestComplete or other external automation tools.
If you are using Ranorex and you are able to access and control the elements on this page using the Ranorex Spy, you can try adding the elements to the Ranorex repository and then use them in your tests. However, keep in mind that this may not work reliably, as the page and its elements are not intended to be accessed or controlled by external programs.
- torus2 years agoContributor
KB1, this is not correct that not other automation tool could interact with this page. I was able to interact with this page without any issues using Selenium/C#/Nunit.
Driver.Instance.Navigate().GoToUrl("https://umeu0514/"); var advancedButton = Driver.Instance.FindElement(By.XPath("//button[@id='details-button' and contains(text(),'Advanced')]")); advancedButton.Click();
Don't get me wrong; I love TestComplete; unbeatable for desktop testing. This was just a bit of a downer that Selenium could do something that TestComplete could not. If you click F12, you can see all of the html elements as plain as day in the Elements tab. And if you go to the developer tab of the developer console and type $x("//button[@id='details-button' and contains(text(),'Advanced')]"), you can verify correctly formatted XPATH
Related Content
- 3 years agomsalvador