谁能告诉我如何使用 selenium webdriver testing on following url 点击 I am a fresher link

can anyone tell me how to click on I am a fresher link using selenium webdriver testing on following url

https://my.naukri.com/account/createaccount?othersrcp=24167&wExp=N&id=

我尝试使用以下语法:

driver.findElement(By.xpath("//div[@class='box')]//div[@class='freshercont')]//div[@class='icon fresher')]//按钮[@title='I am a Fresher']")) 。点击();

driver.findElement(By.xpath("//按钮[@title='I am a Fresher']")).click();

尝试使用这个 XPath:

//button[text()='I am a Fresher']

你可以试试:

    driver.findElement(By.xpath("//button[@name='userType']")).click();

如果这不起作用,请使用:

    driver.findElement(By.xpath("//button[@value='fresher']")).click();