AutoCreateGmailAccount icon indicating copy to clipboard operation
AutoCreateGmailAccount copied to clipboard

Getting an Attribute error

Open qad-22 opened this issue 1 year ago • 2 comments

So, I've been trying to run the code but continuously getting code. I'm using windows 10 to run it. Please tell me how can i solve this issue.

File "C:\Users\qadee\OneDrive\Desktop\AutoCreateGmailAccount-master\AutoCreateGmailAccount.py", line 40, in CreateAccount self._browser.find_element_by_css_selector(r'input[id="firstName"]').send_keys( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'WebDriver' object has no attribute 'find_element_by_css_selector'

qad-22 avatar Mar 07 '23 04:03 qad-22

Replace find_element_by_css_selector( with find_element("css selector", everywhere in the file

CallumBicknell avatar Mar 07 '23 20:03 CallumBicknell

it works and thanks for helping me out but its giving me this error

DevTools listening on ws://127.0.0.1:55965/devtools/browser/09155804-38c5-450c-b977-fee22330bacd [4212:3884:0308/122811.734:ERROR:device_event_log_impl.cc(218)] [12:28:11.733] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) [4212:3884:0308/122811.735:ERROR:device_event_log_impl.cc(218)] [12:28:11.735] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) IP Mac Limited. Stop the Script...

qad-22 avatar Mar 08 '23 07:03 qad-22