looking for some solutions? You are welcome.

SOLVED: unable to locate the select boolean check box id using selenium 3.4

Ramesh Kumar:

I am trying to click primefaces select boolean check box using id but i could not able to click I'm getting some exception caused by:

org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.id: runDARtest1

I increased second 30 also but again getting same issues

driver.get("http://localhost:5080/MOIA2-WEB/");
driver.findElement(By.id("moia2Form:loginForm:tabViedID:userName")).sendKeys("cherie.chen");
driver.findElement(By.id("moia2Form:loginForm:tabViedID:password")).sendKeys("Password1");
driver.findElement(By.id("moia2Form:loginForm:tabViedID:loginButton")).click();
driver.findElement(By.id("moia2Form:lnkMarketClearing")).click();
driver.findElement(By.id("moia2Form:system_Result_runinfo")).click();
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions.elementToBeClickable(By.id("runDARtest1"))).click();;

Xhtml code: select boolean check box there in inside the table

<tr>
    <td><label class="switch"> <h:selectBooleanCheckbox
                                            class="runDARclass"
                                            value="#{systemResultManagedBean.runDAR}" id="runDAR" />
    <span class="slider round" id="runDARtest1"></span>
    </label></td>
    <td><p:spacer width="5px" /><span>DAR</span></td>
</tr>



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent