Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97792

Is there a way to get elements from Chrome Browser in pure C#, without Selenium

$
0
0

In C# I use FindElement to find element:

string text = driver.FindElement(By.XPath("//*[@id='errorPopup']")).text;

Is there a way to perform such action on chrome without Selenium altogether (that means no IJavaScriptExecutor as well)?

Here’s my problem: I’m working with Selenium on a Chrome page in a certain IFrame in my main thread. I need to constantly search for an Error Popup, in a different IFrame which the Driver points to, without (and this is very important), using SwitchTo(), in a different thread.

Is there a way to go outside an IFrame without SwitchTo()?


Viewing all articles
Browse latest Browse all 97792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>