- NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"a[href="/sign-in/partner"]"}
- (Session info: chrome-headless-shell=124.0.6367.60); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
- Stacktrace:
- #0 0x559b88604e33 <unknown>
- #1 0x559b882f4567 <unknown>
- #2 0x559b8833f27d <unknown>
- #3 0x559b8833f331 <unknown>
- #4 0x559b88382624 <unknown>
- #5 0x559b8836138d <unknown>
- #6 0x559b8837fae2 <unknown>
- #7 0x559b88361103 <unknown>
- #8 0x559b883321ba <unknown>
- #9 0x559b88332b8e <unknown>
- #10 0x559b885c959b <unknown>
- #11 0x559b885cd34b <unknown>
- #12 0x559b885b5681 <unknown>
- #13 0x559b885cdeb2 <unknown>
- #14 0x559b8859a6af <unknown>
- #15 0x559b885f4428 <unknown>
- #16 0x559b885f4600 <unknown>
- #17 0x559b88603f84 <unknown>
- #18 0x7fc11ab1aac3 <unknown>
- File <command-2843332633570417>, line 17
- 14 driver.get("https://toolkit.tesco.com/sign-in/")
- 16 try:
- ---> 17 login_button = driver.find_element(By.CSS_SELECTOR, 'a[href="/sign-in/partner"]')
- 18 login_button.click()
- 20 username_field = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, '[aria-label="Email address"]')))
- File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b6e20352-606a-4d63-9418-645d76d56c05/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py:741, in WebDriver.find_element(self, by, value)
- 738 by = By.CSS_SELECTOR
- 739 value = f'[name="{value}"]'
- --> 741 return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
- File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b6e20352-606a-4d63-9418-645d76d56c05/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py:347, in WebDriver.execute(self, driver_command, params)
- 345 response = self.command_executor.execute(driver_command, params)
- 346 if response:
- --> 347 self.error_handler.check_response(response)
- 348 response["value"] = self._unwrap_value(response.get("value", None))
- 349 return response
- File /local_disk0/.ephemeral_nfs/envs/pythonEnv-b6e20352-606a-4d63-9418-645d76d56c05/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py:229, in ErrorHandler.check_response(self, response)
- 227 alert_text = value["alert"].get("text")
- 228 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
- --> 229 raise exception_class(message, screen, stacktrace)
[text] er
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new:
File Description
- er
- Paste Code
- 23 Apr-2024
- 2.54 Kb
You can Share it: