I just want to ask if someone is able to translate this to a normal method or convert this to lambda expression 8 or higher
public void waitUntilDocIsReady()
{
new WebDriverWait(driver, 30).until((ExpectedCondition<Boolean>) wd ->
((JavascriptExecutor) wd).executeScript("return document.readyState").equals("complete"));
}
Actually this is running as expected in my local machine but once I tried to run it in Jenkin Server. I'm having an error "lambda expressions are not supported in -source 1.6" Thank you everyone! I'm really sorry for asking this question. I hope someone can answer this.