Selenium元素定位总结
1)复合类元素定位用By.cssSelector
例:String str_selector = “[class=‘yotta-select-menu css-ncm03v yotta-resource-tag-select-menu’]”;
List list = webDriver.findElements(By.cssSelector(str_selector));
2)iframe定位
Selenium元素定位总结
1)复合类元素定位用By.cssSelector
例:String str_selector = “[class=‘yotta-select-menu css-ncm03v yotta-resource-tag-select-menu’]”;
List list = webDriver.findElements(By.cssSelector(str_selector));
2)iframe定位