0

I am trying to get to the following text area

enter image description here

But I get the error

Message: Element <p> is not reachable by keyboard

I tried both

element = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, ".ql-editor p"))).send_keys(troll_list[rand_troll])

and

wait = WebDriverWait(driver, 30)
wait.until(EC.element_to_be_clickable((By.XPATH, "//*[@id='chat_send-form_textarea']/div[1]/div[1]/p"))).send_keys(troll_list[rand_troll])

And i get the same error

How do I get to this textbox using seleniumbase? I am using the firefox driver.

UPDATE:

This behavior only occurs in Firefox. Chromium is able to find and select the textbox successfully.

Michael Mintz
  • 9,007
  • 6
  • 31
  • 48
brad
  • 870
  • 2
  • 13
  • 38

1 Answers1

1

You're trying to enter text into p (paragraph) HTML tag which is not designed for that purpose.

You should either locate appropriate <input type="text"> element or <textarea>...

JaSON
  • 4,843
  • 2
  • 8
  • 15
  • Yesterday the

    tag worked. (probably some update from admin). Selenium gui can still reach the textbox using the same css selector. For some reason, seleniumbase cannot.

    – brad Jul 29 '20 at 14:04