-1

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

i tried using following syntax:

driver.findElement(By.xpath("//div[@class='box')]//div[@class='freshercont')]//div[@class='icon fresher')]//button[@title='I am a Fresher']")).click();

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

2 Answers2

0

You can try:

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

If that doesnt work, use:

    driver.findElement(By.xpath("//button[@value='fresher']")).click();
Nicolás A.
  • 523
  • 4
  • 10
-1

Try to use this XPath:

//button[text()='I am a Fresher']
zx485
  • 28,498
  • 28
  • 50
  • 59