Interacting With WebDriver
On this page you'll learn about all of the different methods that the Simple Selenium WebDriver class has to offer
Introduction
List of All Simple Selenium WebDriver Functions
Unwrap Driver
seleniumDriver=driver.driver #Returns unwrapped Selenium webdriver objectClose Driver
driver.close() #Closes the webdriver & web browser cleanlyClose Active Tab
driver.close_active_tab() #Closes the current active tab or the entire web browser if only one tab is openVisit a Web Page
driver.visit("https://google.com") #Visits google.com
#Default options:
referrer=False #Whether webdriver should use a referrer before visiting the target page
use_random_delay=True #Delay between visiting referrer website & target website (if referrer!=False)
min_delay=3.0 #Minimum delay between visiting referrer website & target website (if referrer!=False)
max_delay=3.5 #Maximum delay between visiting referrer website & target website (if referrer!=False)
driver.visit("https://domain.com",referrer="https://google.com") #Visits google.com before domain.com, which sets the referrer as google.comFocus Document
Focus IFrame
Focus Parent IFrame
Get Application Cache
Get Browser Capabilities
Get Desired Browser Capabilities
Get Page Source
Get Browser Name
Get Timeouts
Get File Detector
Get Virtual Auth ID
Get Window Handles
Get Device Orientation
Get Current Active Window Handle
Get Web Page Title
Get Mobile Object
Get Log Types
Get Current URL
Get Base64 Screenshot
Get PNG Screenshot
Save File Screenshot
Add Browser Cookie
Add Credential
Add Virtual Authenticator
Previous Page
Delete All Cookies
Delete Cookie By Name
Delete Downloadable Files
Download File
Execute Async Script
Execute Script
Forward Page
Full-Screen Window
Get Cookie By Name
Get All Cookies
Get All Credentials
Get Downloadable Files
Get Log By Type
Get Pinned Scripts
Get Window Position
Get Window Rect
Get Window Size
Implicitly Wait
Maximize Window
Minimize Window
Pin Script
Print Page
Refresh Page
Remove All Credentials
Remove Credential
Remove Virtual Authenticator
Set Page Load Time
Set Script Load Time
Set User Verified
Set Window Position
Set Window Size
Start Client
Start Session
Stop Client
Unpin Script By Key
Last updated