Im getting this error when trying to run my program i've tried many fixes including checking stack overflow for similar questions but still no help
Exception has occurred: NoSuchElementException
Message: no such element: Unable to locate element: {"method":"css selector","selector":".contentContainer activeContent contentContainerBordered"}
(Session info: chrome=108.0.5359.124)
Stacktrace:
Backtrace:
(No symbol) [0x009EF243]
(No symbol) [0x00977FD1]
(No symbol) [0x0086D04D]
(No symbol) [0x0089C0B0]
(No symbol) [0x0089C22B]
(No symbol) [0x008CE612]
(No symbol) [0x008B85D4]
(No symbol) [0x008CC9EB]
(No symbol) [0x008B8386]
(No symbol) [0x0089163C]
(No symbol) [0x0089269D]
GetHandleVerifier [0x00C89A22+2655074]
GetHandleVerifier [0x00C7CA24+2601828]
GetHandleVerifier [0x00A98C0A+619850]
GetHandleVerifier [0x00A97830+614768]
(No symbol) [0x009805FC]
(No symbol) [0x00985968]
(No symbol) [0x00985A55]
(No symbol) [0x0099051B]
(No symbol) [0x7638F989]
RtlGetAppContainerNamedObjectPath [0x771874B4+228]
RtlGetAppContainerNamedObjectPath [0x77187484+180]
File "C:\Users\S300079262\Desktop\pythonshit\autohitter.py", line 14, in <module>
login_form_elements = driver.find_element(By.CLASS_NAME, 'contentContainer activeContent contentContainerBordered')
This is the place where it is erroring
from selenium import webdriver
from selenium.webdriver.common.by import By
# Set the path to the Chrome driver executable
chrome_driver_path = '/path/to/chromedriver'
# Create a new Chrome webdriver
driver = webdriver.Chrome(chrome_driver_path)
# Navigate to the PayPal login page
driver.get('https://www.paypal.com/signin')
# Find all elements with the class 'login-form'
login_form_elements = driver.find_element(By.CLASS_NAME, 'contentContainer activeContent contentContainerBordered')
# Get the first element from the list
login_form = login_form_elements[0]
# Find the username field inside the login form
username_field = login_form.find_element_by_name('email')
# Find the password field inside the login form
password_field = login_form.find_element_by_name('password')
# Fill in the username and password
username_field.send_keys('your_username')
password_field.send_keys('your_password')
# Find the login button and click it
login_button = login_form.find_element_by_id('btnLogin')
login_button.click()
What it is supposed to do is automatically launch the browser and login to my paypal account for me