I'm trying to figure out the ways in Selenium C# to handle the elements on a web page and while trying something new, I don't want to open the browser from scratch for each new try.
So I put a break point in my code at the point right after the page is open. Then I'm trying to write some Selenium code in the Immediate Window. However even a single click call in the Immediate Window gets:
Evaluation requires a thread to run temporarily. Use the Watch window to perform the evaluation.
Google says this is becaue the code I'm trying to run (driver.FindElementByClassName("myClass").Click()) spans a thread and this is not allowed in immediate window. Watch window gives a similar error.
So how can I try something with selenium without starting the browser over and over again?