V
V
Valera Figol2017-05-05 12:26:22
Browsers
Valera Figol, 2017-05-05 12:26:22

How to interact with the browser console using Selenium?

After the tests are completed, I need to send one script to the console that will delete the accounts I created. How can I send this script to the console using Selenium WebDriver?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valera Figol, 2017-05-08
@Kamrit

IJavaScriptExecutor js = (IJavaScriptExecutor)driver;

D
Dmitry Eremin, 2017-05-05
@EreminD

sorry, but straight to the console? or do you just need to execute js on the page?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question