I have requirement that needs to check a div on home page that contains sub images. I am trying like this
My Sample Code :
module.exports.openurl('www.google.com', "Online Shopping | Buy Phones, Computers,Fashion");
driver.sleep(5000);
module.exports.scrollto(0,400);
driver.isElementPresent(webdriver.By.xpath(fexpath)).then(function(present){
if (present){
//goes logic here
}else{
//everytime its going here
}
Here I am getting false as return value. I'm not sure what I'm doing wrong.
fexpathexists? Are you really saying that if you comment out themodule.exports.scrollto(0,400);, it works? That sounds dubious to me . . . – ernie Mar 04 '15 at 23:56