Standard Functions
We provide some documents to help you better use the crawler browser
We provide some common open source technology frameworks for you to choose from. Through these technologies, you can explore the basic CDP functions. You can learn to use these technologies such as Puppeteer and Playwright
Scripting Browser supports all features of these frameworks, so you can get support through the official documentation of these technologies.
Technology Stack
const page = await page.newPage();
await page.goto('https://example.com');
# 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()
Running
Save the following code (don't forget to enter your credentials!) and run it with the following command: script.js
node your_script.js
Last updated