I am new to C# & not able to delete some textbox content using Selenium Clear command. In such situation I was trying the below command when I was working in Java.
webelement.sendKeys(Keys.chord(Keys.CONTROL,"a", Keys.DELETE));
Now in C#, the chord command is not available.
I have gone through the Keys class please find the link https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/Keys.html and believe chord is not there for C#. Do we have any alternative to perform the same operation. I am able to delete the inputs from textbox using JavaScript but how can I achieve pressing many keys at once in C#.
Currently using this approach using JavaScript
public static void clearTextboxContentUsingJS(IWebDriver driver, IWebElement element)
{
((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].value ='';", element);
}