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

'Booking' object has no attribute 'find_element_by_css_selector' #4

Open
hailong18102002 opened this issue Nov 3, 2023 · 1 comment

Comments

@hailong18102002
Copy link

Hi,
I am using window for this project
Then I run python runbot.py
But getting this error:
Traceback (most recent call last):
File "d:\visual code\danang aihub\booking.com_crawler\runbot.py", line 35, in
bot.change_currency(currency="USD")
File "d:\visual code\danang aihub\booking.com_crawler\booking\booking.py", line 79, in change_currency
currency_element = self.find_element_by_css_selector(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Booking' object has no attribute 'find_element_by_css_selector'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\visual code\danang aihub\booking.com_crawler\runbot.py", line 13, in
with Booking() as bot:
TypeError: Booking.exit() takes 1 positional argument but 4 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\visual code\danang aihub\booking.com_crawler\runbot.py", line 55, in
raise SyntaxError
SyntaxError: None

Am I wrong somewhere, please help.

@elio1fiore
Copy link

I have this problem too +1

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

No branches or pull requests

2 participants