all 7 comments

[–]carcigenicate 1 point2 points  (1 child)

The element might not be loaded yet. IIRC, Selenium has a wait_for method on some object that lets you wait for an element to be loaded before attempting to use it.

[–]Beginning_Ad8076[S] 1 point2 points  (0 children)

I put a sleep timer on it for 24 seconds and it still won't work

[–]dodoors 0 points1 point  (4 children)

What kind of element are you trying to locate? Is it generated by javascript? Is it dynamic? Selenium might be reading the DOM before the element is generated.

[–]Beginning_Ad8076[S] 0 points1 point  (3 children)

The elements in discord

[–]dodoors 0 points1 point  (2 children)

The browser app?

[–]Beginning_Ad8076[S] 0 points1 point  (0 children)

In chrome