Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

find elements by class name selenium python

# find elements by class name selenium python
from selenium.webdriver.common.by import By

driver.find_element(By.CLASS_NAME, "HazaaZOOZ")
 
Comment

python selenium find by class name

from selenium import webdriver
from time import sleep

''' FYI chromium webdriver '''
driver = webdriver.Chrome("path/to/chromedriver.exe")

driver.get("https://example.com")

sleep(3)

''' Let´s says your class name is mamor '''
elem = driver.find_elements_by_class_name('mamor')
# Do something with elem ...
sleep(3)

''' Please don´t forget to close your driver '''
driver.close()
Comment

PREVIOUS NEXT
Code Example
Python :: python naming conventions 
Python :: frequency spectrum signal python 
Python :: self.app = Tk() 
Python :: pip is not a batch command but python is installed 
Python :: python - iterate with the data frame 
Python :: python split only last occurrence of a character 
Python :: pandas dataframe total row 
Python :: smtplib not sending email 
Python :: pass variable in subprocess run python 
Python :: python reduce() 
Python :: mongodb aggregate count 
Python :: reverse geocode python 
Python :: if else in dictionary comprehension python 
Python :: how to know the version of python using cmd 
Python :: create a list of a certain length python 
Python :: except python 
Python :: enumerate vs zip python same time 
Python :: fastest clicker python 
Python :: loop append to list python 
Python :: relu function python 
Python :: word generator in python 
Python :: sorted vs sort python 
Python :: create dictionary from input python 
Python :: Make a Basic Face Detection Algorithm in Python Using OpenCV and Haar Cascades 
Python :: python run all tests 
Python :: pandas filter dataframe 
Python :: transpose array python 
Python :: pandas row from dict 
Python :: open and read a file in python 
Python :: remove spaces in string python 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =