0

import org.openqa.selenium.*; import org.openqa.selenium.JavascriptExecutor.executeScript;

4
  • Please add the code how exactly you try to execute your script Commented Apr 10, 2021 at 14:12
  • This is how Im trying to use that JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("document.getElementById('lst-ib').value='chercher tech'"); Commented Apr 10, 2021 at 14:28
  • what is the error you get Commented Apr 10, 2021 at 15:28
  • Cannot resolve symbol 'executeScript' Commented Apr 10, 2021 at 17:05

1 Answer 1

1

You don't need executeScript in your import:

import org.openqa.selenium.JavascriptExecutor;
Sign up to request clarification or add additional context in comments.

Comments

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.