Код: Выделить всё
Thread.sleep(3000);
WebElement fabButton = webDriver.findElement(By.xpath("//ion-footer//ion- fab//ion-fab-button"));
((JavascriptExecutor) webDriver).executeScript("arguments[0].click();", fabButton);
Thread.sleep(3000);
if(fabButton.isEnabled()) {
WebElement referOption = webDriver.findElement(By.xpath("//ion-footer//ion-fab//ion-fab-list//ion-fab-button[1]"));
((JavascriptExecutor) webDriver).executeScript("arguments[0].scrollIntoView(true);", referOption);
((JavascriptExecutor) webDriver).executeScript("arguments[0].click();", referOption);
System.out.println("fabButton is enabled, clicking referOption[1]");
Thread.sleep(1000); // Wait for the action to complete
this.referUsingVehicleNumber();
}
Код: Выделить всё
Vehicle Number
{{operator.firstName}}
{{operator.middleName}} {{operator.lastName}}
Refer
Подробнее здесь: https://stackoverflow.com/questions/792 ... using-java
Мобильная версия