Код: Выделить всё
@And("we get appId from console"){
public String weGetAppIdfromConsole() {
JavaScriptExecutor executor=(JavascriptExecutor)driver;
String appId = (String)executor.executeScript("return page_data.application_id");
System.out.println(appId);
return appId;
}
Код: Выделить всё
When we fill in following details:
|applicationId| text| Here I need to pass the appId|
Я пробовал использовать appId напрямую как:
Код: Выделить всё
When we fill in following details:
|applicationId| text | appId|
Подробнее здесь: https://stackoverflow.com/questions/784 ... p-definiti