My problem is that I am not being able to click on the search icon after the text is being entered. Using the below code to enter the text and click on search icon.
Can you please let me know what mistake I am doing? Below is the code I am using
.then(function() {
log("Search Box");
return $browser.waitForAndFindElement(By.css(inputs.searchBox), DefaultTimeout); })
.then(function(el) {
return $browser.executeScript("arguments[0].setAttribute('value','Synthetics');",el)
.then(function(){
return $browser.findElement(By.css(inputs.searchBox)).click();
})
})
.then(function(){
$browser.waitForAndFindElement(By.xpath(inputs.searchBtn), DefaultTimeout)
return $browser.findElement(By.xpath(inputs.searchBtn)).click()
})