dimanche 5 août 2018

Hello Everyone please help me got stuck at one place while doing one task for Selenium WebDriver

https://my.naukri.com/account/register/basicdetails Note: In this website by default as soon as you open the webpage the checkbox is checked My task is to uncheck the checkbox and again check the checkbox. This is the website I'm working on selenium web driver as a beginner, Well I got stuck at one place, I want to uncheck the checkbox which is at the bottom which says " agreed to the Terms and Conditions governing the use of Naukri.com. I have reviewed the default Mailer & Communications settings." I'm unable to uncheck the checkbox, Please help

Help would be very appreciated :)

I'm getting an error which says --->Exception in thread "main" org.openqa.selenium.WebDriverException: Element is not clickable at the point. Other element would receive the click:

This is my selenium code:

WebDriver driver13=new FirefoxDriver();
        driver13.manage().timeouts().implicitlyWait(6, TimeUnit.SECONDS);
        driver13.get("https://www.naukri.com/");
        driver13.manage().window().maximize();
        driver13.findElement(By.xpath("//*[@id=\"p0widget\"]/div[1]/div[1]/div[1]/input[1]")).click();
        driver13.findElement(By.xpath("//button[@value='exp']")).click();

// Here is my error guys below code is not working in spite I've written correct XPath, please help how can I uncheck the checkbox and again check the checkbox. Actions a=new Actions(driver13);

  a.moveToElement(driver13.findElement(By.xpath("//input[@name='term']"))).click().build().perform(

);




Aucun commentaire:

Enregistrer un commentaire