Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath' #17

Closed
myrup11 opened this issue Apr 19, 2023 · 2 comments
Closed

Comments

@myrup11
Copy link

myrup11 commented Apr 19, 2023

Enter college id for ex - 1 or 2 or 3.... : 6

[*] Selected College: Cañada College

[*] Enter Your Email: Richard58Wilson@outlook.com

[] Hold on Starting now, Keep checking this terminal for instructions
C:\Users\swaru\OneDrive\Desktop\edu\Edu-Mail-Generator-1.2\bot.py:76: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
driver = webdriver.Firefox(executable_path=r'./webdriver/geckodriver')
Traceback (most recent call last):
File "C:\Users\swaru\OneDrive\Desktop\edu\Edu-Mail-Generator-1.2\bot.py", line 1040, in
main()
File "C:\Users\swaru\OneDrive\Desktop\edu\Edu-Mail-Generator-1.2\bot.py", line 1037, in main
start_bot(reg_url, userEmail, allColleges[userInput], userInput + 1)
File "C:\Users\swaru\OneDrive\Desktop\edu\Edu-Mail-Generator-1.2\bot.py", line 90, in start_bot
driver.find_element_by_xpath('//
[@id="portletContent_u16l1n18"]/div/div[2]/div/a[2]').click()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'

@github-actions
Copy link

Message that will be displayed on users first issue

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant