Which values do I have to put in actual and expected if that result is greater than 5000 and what can I do to print pass in the console?
Code trials:
public class Grabthe_result_google {
public static void main(String[] args) {
ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
System.setProperty("webdriver.chrome.driver", "C:\\Users\\l\\OneDrive\\Desktop\\chromedriver-win32\\chromedriver.exe");
WebDriver driver=new ChromeDriver(options);
driver.get("https://www.google.com");
driver.findElement(By.id("APjFqb")).sendKeys("mobile",Keys.ENTER);
String result = driver.findElement(By.id("result-stats")).getText().split(" ")[1];
System.out.println(result);
Assert.assertEquals(0, 0);
}
}