Standard Functions

The various browser automation capabilities covered by these tools are fully supported in our Browser API. This means that during use, you can directly consult the official documentation of the corresponding technology—all features are seamlessly compatible and can be smoothly invoked, making it easier and more convenient to obtain reliable technical support.

Tech Stack

Puppeteer

const page = await page.newPage();  
await page.goto('https://example.com');  

Selenium


# Start the session
driver = webdriver.Chrome()

# Take action on browser
driver.get("https://www.selenium.dev/selenium/web/web-form.html")

# Request browser information
title = driver.title
driver.implicitly_wait(0.5)

#Find an element
text_box = driver.find_element(by=By.NAME, value="my-text")
submit_button = driver.find_element(by=By.CSS_SELECTOR, value="button")

# Take action on element
text_box.send_keys("Selenium")
submit_button.click()

# Request element information
message = driver.find_element(by=By.ID, value="message")
text = message.text

# End the session
driver.quit()

Run

Save the following code (don’t forget to enter your credentials!) and run it using the commands below:


# Start the session
driver = webdriver.Chrome()

# Take action on browser
driver.get("https://www.selenium.dev/selenium/web/web-form.html")

# Request browser information
title = driver.title
driver.implicitly_wait(0.5)

#Find an element
text_box = driver.find_element(by=By.NAME, value="my-text")
submit_button = driver.find_element(by=By.CSS_SELECTOR, value="button")

# Take action on element
text_box.send_keys("Selenium")
submit_button.click()

# Request element information
message = driver.find_element(by=By.ID, value="message")
text = message.text

# End the session
driver.quit()

If you need further assistance or explanations, feel free to contact us at: [email protected].

Last updated

Was this helpful?