📄️ element.click()
The element.click() function in ShadowdriverJS is used to simulate a mouse click on a web element. This function is similar to the click() function in WebDriverJS.
📄️ element.getText()
The element.getText() function in ShadowdriverJS is used to simulate a mouse getText on a web element. This function is similar to the getText() function in WebDriverJS.
📄️ await element.clear()
The await element.clear() function in Selenium WebDriver (which is used by ShadowdriverJS) is used to clear the text from an input or textarea element on a webpage. This can be useful when you want to ensure that the field starts with a clean slate during your tests.
📄️ await element.getAttribute
The await element.getAttribute(attributeName) function in Selenium WebDriver (used by ShadowdriverJS) is used to retrieve the value of an attribute from a web element. This can be useful for checking the state or properties of elements on a webpage.
📄️ await element.getCssValue()
The await element.getCssValue(propertyName) function in Selenium WebDriver (used by ShadowdriverJS) is used to retrieve the computed CSS value of a specific property for a given web element. This can be useful for verifying styles or properties that affect an element's appearance and behavior.
📄️ await element.isDisplayed()
The await element.isDisplayed() function in Selenium WebDriver (used by ShadowdriverJS) is used to check if a web element is currently visible and displayed on the screen. This can be useful for verifying that an element appears as expected after certain interactions or during test assertions.
📄️ await element.isEnabled()
The await element.isEnabled() function in Selenium WebDriver (used by ShadowdriverJS) is used to check if a web element is enabled and can be interacted with, such as clicking or entering text. This is useful for verifying that an element is ready for user interaction.
📄️ await element.sendKeys
The await element.sendKeys(textOrKeys) function in ShadowdriverJS is used to send text or special keys to a web element. This can be useful for typing into input fields or sending specific key events.