A
A
aqau1232021-11-12 17:35:42
selenium
aqau123, 2021-11-12 17:35:42

How to find this element through selenium?

<input id="j_idt17:email" name="j_idt17:email" class="fcb-op-form-input" maxlength="255" tabindex="1" placeholder="E-Mail" type="email">

here is the html itself, how to access it through selenium?
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".fcb-op-form-input"}
  (Session info: chrome=95.0.4638.69)

why error?
loginInput = driver.find_element_by_css_selector(".fcb-op-form-input")

I tried both through the id, and through everything I tried to find this element, the result is zero.
https://myfcb.fcbayern.com/en#/login - site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanya Hihi Haha, 2021-11-12
@ValarMayar

element = driver.find_element(By.CLASS_NAME, "fcb-op-form-input")
element =  driver.find_element_by_class_name("fcb-op-form-input")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question