我们可以在硒中用POM编写自定义类吗?

时间:2018-06-01 10:53:27

标签: selenium-webdriver pageobjects

@FindBy(id = "loginUser") 
private WebElement _username;

@FindBy(id = "loginPass")
private TextBox _password;

扩展Webelement接口的TestBox类。 我收到以下错误

  

java.lang.IllegalArgumentException:无法设置   com.selenium.element.webelementutil.TextBox字段   com.selenium.element.webelementutil.SampleLogin._password to   com.sun.proxy。$ Proxy5

0 个答案:

没有答案
相关问题