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

Headless true Attribute error #13

Closed
njhughesSAS opened this issue Nov 20, 2020 · 1 comment
Closed

Headless true Attribute error #13

njhughesSAS opened this issue Nov 20, 2020 · 1 comment

Comments

@njhughesSAS
Copy link
Contributor

This error is produced with headless enabled

DevTools listening on ws://127.0.0.1:53160/devtools/browser/44e64fc2-aaaf-4fc0-a6c7-cf43538c9b67 [13748:8324:1119/071644.574:ERROR:display_layout.cc(562)] PlacementList must be sorted by first 8 bits of display_id PS C:\Users\User> & C:/Users/User/AppData/Local/Programs/Python/Python39/python.exe c:/Users/User/Documents/Microsoft-Rewards-Farmer-master/farmer_test.py Traceback (most recent call last): File "c:\Users\User\Documents\Microsoft-Rewards-Farmer-master\farmer_test.py", line 354, in <module> browser = browserSetup(True, PC_USER_AGENT) File "c:\Users\User\Documents\Microsoft-Rewards-Farmer-master\farmer_test.py", line 37, in browserSetup options.headless = True AttributeError: can't set attribute

The following is the Error from running headless false
Traceback (most recent call last): File "c:\Users\User\Documents\Microsoft-Rewards-Farmer-master\test\import time.py", line 351, in <module> login(browser, account['username'], account['password']) File "c:\Users\User\Documents\Microsoft-Rewards-Farmer-master\test\import time.py", line 64, in login waitUntilVisible(browser, By.ID, 'KmsiCheckboxField', 10) File "c:\Users\User\Documents\Microsoft-Rewards-Farmer-master\test\import time.py", line 92, in waitUntilVisible WebDriverWait(browser, time_to_wait).until(ec.visibility_of_element_located((by_, selector))) File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message:

@charlesbel
Copy link
Owner

I made an update, try it :)

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