How to enter a value in Shadow-root (user-agent) Java-Selenium?

278 views Asked by At

I used many options, but not one did not help

The place where you need to enter the value

Used options:

1

Then I tried the same thing, but with a separate method

method

2

option 3

3

option 4

4

option 5 (this option records the value, but the page does not see it)

code

5

1

There are 1 answers

1
Akzy On

Try the below

elem = WebDriverWait(driver,10).until(EC.visibility_of_element_located((By.XPATH,"xpath")))

elem.send_keys("Text")