Navigate to URLs Find elements using various locator strategies Click, type, and interact with elements Perform mouse actions (hover, drag and drop) Handle keyboard input Take screenshots Upload files
Launches a browser session. Parameters: browser (string, required), options (object, optional) - includes headless (boolean) and arguments (array of strings).
Navigates to a URL. Parameters: url (string, required).
Finds an element on the page. Parameters: by (string, required), value (string, required), timeout (number, optional, default: 10000).
Clicks an element. Parameters: by (string, required), value (string, required), timeout (number, optional, default: 10000).
Sends keys to an element (typing). Parameters: by (string, required), value (string, required), text (string, required), timeout (number, optional, default: 10000).
Gets the text() of an element. Parameters: by (string, required), value (string, required), timeout (number, optional, default: 10000).
Moves the mouse to hover over an element. Parameters: by (string, required), value (string, required), timeout (number, optional, default: 10000).
Drags an element and drops it onto another element. Parameters: by (string, required), value (string, required), targetBy (string, required), targetValue (string, required), timeout (number, optional, default: 10000).
Performs a double click on an element. Parameters: by (string, required), value (string, required), timeout (number, optional, default: 10000).
Performs a right click (context click) on an element. Parameters: by (string, required), value (string, required), timeout (number, optional, default: 10000).
Simulates pressing a keyboard key. Parameters: key (string, required).
Uploads a file using a file input element. Parameters: by (string, required), value (string, required), filePath (string, required), timeout (number, optional, default: 10000).
Captures a screenshot of the current page. Parameters: outputPath (string, optional).
Closes the current browser session and cleans up resources. Parameters: None required.
No reviews yet. Be the first to review!
Sign in to join the conversation