https://www.selenium.dev/documentation/en/ https://selenium-python.readthedocs.io/installation.html
Cara Penggunaan
Instansiasi WebDriver
- WebDriver :
- Chrome()
Navigasi ke URL yang Diinginkan
- WebDriver :
- get(alamat_url)
Navigasi ke Window yang Diinginkan
- WebDriver :
- switchTo() :
- newWindow()
- close()
- quit()
- switchTo() :
Mengambil Screenshot
https://www.selenium.dev/documentation/en/webdriver/browser_manipulation/
Mencari Elemen
- WebDriver :
- getTitle()
- WebElement :
- findElement(konfigurasi_selector)
- findElements(konfigurasi_selector)
WAIT, Menunggu Elemen Muncul
https://www.selenium.dev/documentation/en/webdriver/waits/