Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to take screenshots with selenium webdriver python

from selenium import webdriver
from time import sleep

driver = webdriver.Firefox()
driver.get('https://www.python.org')
sleep(1)

driver.get_screenshot_as_file("screenshot.png")
driver.quit()
print("end...")
Comment

python selenium screenshot

driver.save_screenshot("screenshot.png")
Comment

PREVIOUS NEXT
Code Example
Python :: pylint no name in module cv2 
Python :: how to get latitude and longitude from address in python 
Python :: pandas read_csv drop last column 
Python :: dataframe slice by list of values 
Python :: A value is trying to be set on a copy of a slice from a DataFrame. 
Python :: python split path at level 
Python :: python loop through directory 
Python :: how to get a random element from an array in python 
Python :: how to install wxpython 
Python :: getting dummies and input them to pandas dataframe 
Python :: find the closest position by time list python 
Python :: python install required packages 
Python :: f string round 
Python :: human readable time difference python 
Python :: python read csv 
Python :: discord.py commands not working 
Python :: discord.py status 
Python :: how to apply labelencoder on multiple columns at once 
Python :: python print float with 2 decimals 
Python :: save list python 
Python :: image capture from camera python 
Python :: df dropna ensure that one column is not nan 
Python :: merge pdf in python 
Python :: read csv python pandas plot 
Python :: reload all extensions discord.py 
Python :: how to plot 2 decimal values in axis python 
Python :: python import json into pymongo 
Python :: plt plot circle 
Python :: how to return the derivative of a function in python 
Python :: how to write to an output file in pytion 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =