H
H
henre19892019-02-18 14:32:50
Python
henre1989, 2019-02-18 14:32:50

How to make an input field visible by changing an attribute?

I am writing a program in python, I use selenium to authorize on a site where there is Recapcha, to bypass it I use the rucapcha service, 5c6a96984a987261494938.jpeg
The problem is how to remove the
display: none parameter;
Most likely you need to use driver.execute_script(""), on js, help with the code

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-02-18
@LazyTalent

elem = driver.find_element_by_id("some_id")
driver.execute_script("arguments[0].style.display = 'block';", elem)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question