基于 SELENIUM 的自动化测试架构(29)

发表于:2017-04-11来源:gitbook作者:凌俣Linty?点击数: 标签:selenium
BasePage (BoxDriver driver) { this .baseDriver = driver;} 私有的常量:存放元素的定位符 java private String START_BUTTON_SELECTOR = s,#start div; private final String EXIT_MENU_TEXT = l,%
BasePage(BoxDriver driver) { this.baseDriver = driver; }
  • 私有的常量:存放元素的定位符

       java
       private String START_BUTTON_SELECTOR = "s,#start > div";
       private final String EXIT_MENU_TEXT = "l,%s";
    
...