import org.openqa.selenium.*; import org.openqa.selenium.JavascriptExecutor.executeScript;
Asked
Active
Viewed 250 times
0
-
Please add the code how exactly you try to execute your script – Lia Apr 10 '21 at 14:12
-
This is how Im trying to use that JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("document.getElementById('lst-ib').value='chercher tech'"); – Gayathri Apr 10 '21 at 14:28
-
what is the error you get – PDHide Apr 10 '21 at 15:28
-
Cannot resolve symbol 'executeScript' – Gayathri Apr 10 '21 at 17:05
1 Answers
1
You don't need executeScript in your import:
import org.openqa.selenium.JavascriptExecutor;

Lia
- 504
- 2
- 7