Hey Guys ,
Hope everyone is fine during this pandemic ,
Currently i’m facing one issue in clearing field in Selenium ,I have tried almost every possible thing but not able to do it :
My Scenario is :
I need to open loan documents ,i need to clear some wrongly pre-populated masked dob field [I cannot continue with this because while trying to finish signing doc, it throws error at this field saying incorrect date format .So i need to clear the field and enter dob in MM/DD/YYYY format .
Things which i tried :
- Using sendKeys(Keys.CONTROL + “a”) then sendKeys(Keys.BACKSPACE) or sendKeys(Keys.DELETE)
- Of course i tried using clear method as well
My xpath is something like below :
I’m operating on input field Only but not able to clear the value
//label[text()=“Required - Applicant Birthdate”]/parent::div/input[starts-with(@id,‘masked-tab’)]
Much appreciated if anyone can help me in solving this issue .