I'm Not able to sort this error on Running selenium script on chrome driver using python

Viewed 24

File "d:\Royal Folder\Royal Folder\py program\Selenium\Conditional command.py", line 19, in
AttributeError: 'WebDriver' object has no attribute 'find_element_by_name' PS D:\Royal Folder\Royal Folder\py program> & C:/Users/Piyush/AppData/Local/Programs/Python/Python310/python.exe "d:/Royal Folder/Royal Folder/py program/Selenium/Implicit & Explicit wait.py" d:\Royal Folder\Royal Folder\py program\Selenium\Implicit & Explicit wait.py:9: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(executable_path="D:\Royal Folder\Royal Folder\py program\Selenium\chromedriver.exe")

DevTools listening on ws://127.0.0.1:62784/devtools/browser/f2fb0dfe-3ab6-411b-8bc3-b5e2bfe308c6 PS D:\Royal Folder\Royal Folder\py program> & C:/Users/Piyush/AppData/Local/Programs/Python/Python310/python.exe "d:/Royal Folder/Royal Folder/py program/Selenium/InputBox_TextBox.py" d:\Royal Folder\Royal Folder\py program\Selenium\InputBox_TextBox.py:7: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(executable_path="D:\Royal Folder\Royal Folder\py program\Selenium\chromedriver.exe")

DevTools listening on ws://127.0.0.1:62817/devtools/browser/647f7c44-940d-407f-b3c9-c0d3238ddffb Traceback (most recent call last): File "d:\Royal Folder\Royal Folder\py program\Selenium\InputBox_TextBox.py", line 11, in
name = driver.find_element_by_name("name") AttributeError: 'WebDriver' object has no attribute 'find_element_by_name' PS D:\Royal Folder\Royal Folder\py program> [15864:5384:0920/154837.467:ERROR:device_event_log_impl.cc(214)] [15:48:37.482] Bluetooth: bluetooth_adapter_winrt.cc:1074 Getting Default Adapter failed. [15864:5384:0920/154837.569:ERROR:device_event_log_impl.cc(214)] [15:48:37.569] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F) [15864:12356:0920/154929.740:ERROR:util.cc(129)] Can't create base directory: C:\Program Files\Google\GoogleUpdater [8200:14496:0920/155027.307:ERROR:dxva_video_decode_accelerator_win.cc(1451)] DXVAVDA fatal error: could not LoadLibrary: mf.dll: The specified module could not be found. (0x7E) [8200:14496:0920/155027.338:ERROR:dxva_video_decode_accelerator_win.cc(1451)] DXVAVDA fatal error: could not LoadLibrary: mfplat.dll: The specified module could not be found. (0x7E) [8200:14496:0920/155027.341:ERROR:dxva_video_decode_accelerator_win.cc(1451)] DXVAVDA fatal error: could not LoadLibrary: msmpeg2vdec.dll: The specified module could not be found. (0x7E) [8200:14496:0920/155027.360:ERROR:dxva_video_decode_accelerator_win.cc(1459)] DXVAVDA fatal error: could not LoadLibrary: msvproc.dll: The specified module could not be found. (0x7E) [8200:14496:0920/155027.364:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is [15864:5384:0920/155450.982:ERROR:device_event_log_impl.cc(214)] [15:54:50.985] USB: usb_service_win.cc:104 SetupDiGetDeviceProperty({{A45C254E-DF1C-4EFD-8020-67D146A850E0}, 6}) failed: Element not found. (0x490)

0 Answers
Related