Selenium
Summary
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
Available Actions(14)
start_browser
Launches a browser session. Parameters: browser (required, string), options (optional, object with headless (boolean) and arguments (array of strings))
navigate
Navigates to a URL. Parameters: url (required, string)
find_element
Finds an element on the page. Parameters: by (required, string), value (required, string), timeout (optional, number, default: 10000)
click_element
Clicks an element. Parameters: by (required, string), value (required, string), timeout (optional, number, default: 10000)
send_keys
Sends keys to an element (typing). Parameters: by (required, string), value (required, string), text (required, string), timeout (optional, number, default: 10000)
get_element_text
Gets the text() of an element. Parameters: by (required, string), value (required, string), timeout (optional, number, default: 10000)
hover
Moves the mouse to hover over an element. Parameters: by (required, string), value (required, string), timeout (optional, number, default: 10000)
drag_and_drop
Drags an element and drops it onto another element. Parameters: by (required, string), value (required, string), targetBy (required, string), targetValue (required, string), timeout (optional, number, default: 10000)
double_click
Performs a double click on an element. Parameters: by (required, string), value (required, string), timeout (optional, number, default: 10000)
right_click
Performs a right click (context click) on an element. Parameters: by (required, string), value (required, string), timeout (optional, number, default: 10000)
press_key
Simulates pressing a keyboard key. Parameters: key (required, string)
upload_file
Uploads a file using a file input element. Parameters: by (required, string), value (required, string), filePath (required, string), timeout (optional, number, default: 10000)
take_screenshot
Captures a screenshot of the current page. Parameters: outputPath (optional, string)
close_session
Closes the current browser session and cleans up resources. Parameters: None required
Recensioni della Community
Nessuna recensione ancora. Sii il primo a recensire!
Accedi per unirti alla conversazione