如何在Selenium Webdriver POM模型中打印WebElement变量名称?

时间:2018-09-10 14:26:44

标签: java selenium-webdriver

A级:

...
@FindBy(css="locator")
public static WebElement variableName;

B级:

...
System.out.println("WebElement name is "+ I WANT TO PRINT variableName here);

0 个答案:

没有答案