Tutorial by Examples

C#

Clearing the Content of element(Generally Text Box) interactionWebElement.Clear(); Entering data to element (Generally Text Box) interactionWebElement.SendKeys("Text"); Storing the value of the element. string valueinTextBox = interactionWebElement.GetAttribute("value"...
Clearing the content of a web element: (note - when simulating user actions in tests, it's better to send backspace, see next action) interactionWebElement.clear(); Entering data - simulating sending keystrokes: interactionWebElement.sendKeys("Text"); interactionWebElement.sendKeys(K...

Page 1 of 1