Please find the attached screenshot for html tags:We need to print the 3 which in react-text
The following code i have tried: WebElement MyText = driver.findElement(By.xpath("(//div[@class='badge-number'])[6]"));
JavascriptExecutor jse = (JavascriptExecutor)driver;
String platformName = (String) jse.executeScript("return arguments[0].value;", MyText); System.out.println("text:"+MyText.getText());
I just want to print that minutes and seconds and they are dynamic.