1

I´m trying to enter a webside world with selenium with this code:

World_select = driver.find_element_by_link_text('USA 15')
World_select.click()

Even with this code I can´t enter it.

driver.find_element_by_partial_link_text('USA 15').click()

The terminal sends me a traceback witch I dont really understand how to fix it.

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: USA 15

Thanks for your help :)

U13-Forward
  • 69,221
  • 14
  • 89
  • 114
crytowave
  • 41
  • 1
  • 6
  • What webpage you are traying it on? – Brambor Jan 03 '21 at 11:37
  • 1
    https://lordsandknights.com/ You enter this webside and then you can choose a world. I want to create a programm where you can choose in witch world you want to go. But for that I need to get all of the links. Here is a screenshot : https://prnt.sc/wf8igw – crytowave Jan 03 '21 at 11:43
  • Well, the error you are getting "NoSuchElementException" means exactly what it says. You probably want to wait for the element to appear, the page is loading for like 30s for me... – Brambor Jan 03 '21 at 11:58
  • Other than that, it looks ok, I tried `driver.find_element_by_partial_link_text("at vrá").click()` on https://www.eztraty.cz/founds. It seems it is taking spaces and correctly finds the button and clicks it... – Brambor Jan 03 '21 at 12:03
  • You need to post more of your code so we can see what you doing and what you are *not* doing. See: [How to create a Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example). – Booboo Jan 03 '21 at 12:07

0 Answers0