0
quicknav">
<div class="status-loggedin" style="display:none;" data-component="quicknav-status-loggedin">
<div class="status-loggedout" data-component="quicknav-status-loggedout">
<a class="login-link" data-component="quicknav-login-link" rel="nofollow" title="Sign In" href="#">Sign In</a>
<a class="create-account-link" data-component="quicknav-create-account-link" rel="nofollow" title="Create Your Account" href="#">Create Your Account</a>
</div>
</div>
我試過使用下面但不工作。請幫助:如何使用Selenium和Java單擊此「登錄」鏈接?
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.findElement(By.xpath("//div[contains(@id, 'userInfoQuickNav'/ title = 'Sign In'"));
當你試圖記錄這種自動化與硒發生了什麼? – admdrew