I am testing a non-angular (javascript and HTML) site with protractor and selenium. I want to clear the input. I have used below commands
browser.driver.findElement(by.id('txtname')).clear();
browser.driver.findElement(by.id('txtEditGuestFname')).sendKeys(Keys.chord(Keys.CONTROL, "a"), "1234");
since i can not use angular syntax both the codes doesn't work to me.
Any other idea how to clear the input with simple javascript protractor supporting code?