![](/img/trans.png)
[英]any way to catch a WebElement without using XPath or CssPath
[英]xpath and csspath from HTML code for using in WebDriver
我有以下HTML片段:
<label for="widget_118_login_username">Username</label>
Selenium 2(WebDriver)中使用什么xpath和csspath(cssSelector)?
以下內容適合我:
Xpath:// label [@ for ='widget_118_login_username']
cssSelector:標簽[for = widget_118_login_username]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.