How to perform multiple actions and click on the link with text as Member Login on the url http://www.spicejet.com/ through selenium-webdriver
问题 I tried the below code but it is not mouse hovering and clicking on 'Member login' WebElement lgn = driver.findElement(By.id("ctl00_HyperLinkLogin")); WebElement ssm = driver.findElement(By.xpath("//a[contains(text(), 'SpiceCash/SpiceClub Members')]")); WebElement cgm = driver.findElement(By.xpath("//a[contains(text(),'Member Login')]")); Actions a1 = new Actions(driver); a1.moveToElement(lgn).moveToElement(ssm).moveToElement(cgm).click().build().perform(); 回答1: To invoke click() on the