NoSuchElementError: no such element (javascript webdriver)

i have problems with checked for exists element in code

if (browser.isElementPresent(webdriver.By.css(“a#link-goto-globalsite”))){
browser.findElement(webdriver.By.css(“a#link-goto-globalsite”)).click();
}else{
console.log(‘Button is exist’);
}

“isElementPresent” provides true always, even if the element is not present

maxy666 Default Asked on December 28, 2014 in Selenium WebDriver.

Can you share the code for isElementPresent ? what there in the implmentation

on December 29, 2014.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.