0

Im trying to use WebDriverWait but when I use it, it has a line through.

enter image description here

the import being called is

import org.openqa.selenium.support.ui.WebDriverWait;
  • That is because the constructor you are using is deprecated, which your IDE would probably tell you if you hovered your mouse over that line, or you could also read on if you would have just looked at the official documentation of the tool you are using. It has absolutly nothing to do with "not importing correctly" and isn't even an error in any way. – OH GOD SPIDERS Jan 29 '21 at 10:24
  • Does this answer your question? [Java's Date(...) constructor is deprecated; what does that mean?](https://stackoverflow.com/questions/1999766/javas-date-constructor-is-deprecated-what-does-that-mean) – OH GOD SPIDERS Jan 29 '21 at 10:26
  • @OHGODSPIDERS thanks for your comment, I forgot to get back to you, your solution is correct and so is the link to the similar question, I just fixed mine by using an older version of selenium, it wouldn't work because i was using an alpha version. I thought it was safer going to an older beta instead of changing source code – Brendan Ahern Feb 01 '21 at 18:04

1 Answers1

0

It doesnt work because I was using the newest alpha version when its not stable

I had to download and add the last stable Jar here