Methods displayed as strikethrough text

Viewed 1560

Can anyone tell me why the methods pageloadtimeout and implicitlywait are displayed as strikethrough text in my testbase class?

strikethrough methods

2 Answers

The Method you have used is outdated. Use Below method will help you.

driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
Related