Hi Joi, I am still waiting for the solution to the issue of clear function which I am facing :
Please refer below :
We tried the second option and tried to insert the desired value but first, we need to clear the default date and for that, we have used the clear function. But clear function not doing its work. Please see the code below.
Can you please help to find the solution for the same?
.then(function(){
return $browser.findElement($driver.By.className(nextMonthClass)).click();
})
.then(function(){
return $browser.findElement($driver.By.xpath(’/html/body/div/div/div[1]/div/div[2]/div/div/div[1]/div[1]/div[1]/div[2]/div/div[1]/div/input’)).then(function(element){
return element.click().then(function(){
return $browser.findElement($driver.By.xpath(’/html/body/div/div/div[1]/div/div[2]/div/div/div[1]/div[1]/div[1]/div[2]/div/div[1]/div/input’)).clear();
element.sendKeys(‘2021-01-27’)
});
})
|690x387](upload://g3ApcgOKYJ1Je7GJfHFwp1LGPuk.png)