Que erro será este? Em uma maquina da erro, em outra passa mas não grava a alteração nas configurações. Alguém sabe o que pode ser isso?
Warning (from warnings module):
File "C:\Users\Eugenio\Desktop\BotEdge\Bootar.py", line 7
navegador = webdriver.Edge(r"msedgedriver.exe")
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
Traceback (most recent call last):
File "C:\Users\Eugenio\Desktop\BotEdge\Bootar.py", line 27, in <module>
navegador.find_element('By =xpath','//*[@id="section_internetExplorerCompatibility"]/div[2]/div/div[2]/div/div[1]/div[2]/button/span').click()
File "C:\Users\Eugenio\AppData\Local\Programs\Python\Python39-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 856, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\Eugenio\AppData\Local\Programs\Python\Python39-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute
self.error_handler.check_response(response)
File "C:\Users\Eugenio\AppData\Local\Programs\Python\Python39-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator
(Session info: MicrosoftEdge=111.0.1661.54)
Stacktrace:
Backtrace:
Microsoft::Applications::Events::EventProperties::unpack [0x00C199C3+23139]
Microsoft::Applications::Events::time_ticks_t::time_ticks_t [0x00B2BA01+329985]
Microsoft::Applications::Events::ILogConfiguration::operator* [0x009893CE+3854]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009B2B1F+95535]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009B3119+97065]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009D94F2+253698]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009C74A4+179892]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009ABD73+67459]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009D7EDA+248042]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009C71B6+179142]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009AB091+64161]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009AA83B+62027]
Microsoft::Applications::Events::GUID_t::GUID_t [0x009AB78D+65949]
GetHandleVerifier [0x00D13CB5+872405]
Microsoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00DE6B47+122807]
Microsoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00DE63BD+120877]
Microsoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00DEC87A+146666]
Microsoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00DE7543+125363]
Microsoft::Applications::Events::time_ticks_t::time_ticks_t [0x00B3FD7B+412795]
Microsoft::Applications::Events::time_ticks_t::time_ticks_t [0x00B4C648+464200]
Microsoft::Applications::Events::time_ticks_t::time_ticks_t [0x00B4C760+464480]
Microsoft::Applications::Events::time_ticks_t::time_ticks_t [0x00B5DB44+535108]
BaseThreadInitThunk [0x76B9D0F9+25]
RtlExpandEnvironmentStrings_U [0x777C250D+493]
RtlExpandEnvironmentStrings_U [0x777C24E1+449]