#😥😥Selenium Python

39 messages · Page 1 of 1 (latest)

dense sail
#

@urban sinew

#

what is it that you dont understand

#

the run button selector?

#

you have to copy the selector or the id of the run button for selenium to click it

#

you already have the code to click the run button

run_button = driver.find_element_by_css_selector(run_button_selector)
run_button.click()

all you need is the id of it

#

for selenium to find

#

because you havent provided the selector id to it

#

selenium needs to find the button in the website

#

for that it needs its name

#

the name is called the selector or ID

#

do you know about inspect element?

#

in browser

#

wait i will show you

#

the button doesnt have an id

#

it has a class

#
run_button.click()```
#

find element by css selector

#

is used when you dont have an id

#

to use it

#

heres a quick demo i recorded

#

watch this

#

tell me if you have any doubts

#

once you copy the select paste it

#

when it asks you to paste the run button selector

#

oh you speak spanish

#

i know spanish we could have talked in that

#

it would have been better and easier to communicate

#

No hay problema. Me alegro de que te haya ayudado.

#

that wont work, you see the thing you copied had class written infront of it💀

#

its a different element

#

classes, id, css selectors, xpath

#

and all

#

when you right click on an element it lets you copy everything

#

anyway glad i was helpful

#

you mean the ai?

#

sure

#

thats smart nice