-1

I export the test case as a cs file from Selenium. I want to get all objects under the window during run time, so I selected JavaScript for that.

How to use it in cs file?

Please give some example or list the ways to get the objects from window in Selenium cs test case.

1 Answer 1

0

We can use selenium.GetEval() for JavaScript, and get Object from form using

selenium.GetEval("window.document.getElementsByTag('form').elements");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.