antonengelhardt / kicktipp-bot

A bot which can submit tips for a Kicktipp competition based on quotes.
MIT License
14 stars 5 forks source link

Unable to locate element #35

Closed it-fanatic closed 4 weeks ago

it-fanatic commented 1 month ago

Environment

After starting the container, the following message is displayed in the log:

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="tippabgabeSpiele"]/tbody/tr[1]/td[2]"}

It seems as if something has been changed on the website and the appropriate element can no longer be found. The name may have changed, unfortunately I don't know how to determine this myself.

antonengelhardt commented 1 month ago

Hey, thanks for reporting. I get the same error.

I will investigate it later. If you want to work on it in the meantime, you can use chrome dev tools. Select the table with the element selector, right click and copy the xpath.

Good luck and talk to you later ✌🏻

it-fanatic commented 1 month ago

"@id="tippabgabeSpiele"]/tbody/" seems to be identical, maybe the table elements after (/tr[1]/td[2])?

antonengelhardt commented 4 weeks ago

Hey @it-fanatic,

i tested it over the last few days, and i never got the terror with row 1. I only got it for row 10 which is the bonus points.

This is an edge case, which only happens before the first match and it is not covered in the code yet.

it-fanatic commented 4 weeks ago

Hi, that makes sense, I think that the bonus questions weren't always displayed there. thanks for checking. :)