Class ClearWithShortcut
java.lang.Object
com.codeborne.selenide.FluentCommand
com.codeborne.selenide.commands.Clear
com.codeborne.selenide.clearwithshortcut.ClearWithShortcut
- All Implemented Interfaces:
Command<SelenideElement>
Clean the input field value.
The standard Selenium method WebElement.clear() does not help in case of
"tricky" inputs generated by Vue.js, React and other fancy frameworks.
That's why we need to clear the field value by emulating real user actions:
- Select the whole text
- press "Delete"
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClear the input content without triggering "change" and "blur" eventsprotected voidclearWithShortcut(Driver driver, org.openqa.selenium.WebElement input) protected PlatformgetPlatform(Driver driver) Methods inherited from class com.codeborne.selenide.commands.Clear
blurSafely, clearAndTrigger, executeMethods inherited from class com.codeborne.selenide.FluentCommand
execute