G
G
George2019-02-27 18:57:02
Python
George, 2019-02-27 18:57:02

Python selenium how to click on list item by input value?

5c76b432cfc67179019042.jpegI need to click on the button (from the list) that says 'Business'. How can I do it?

<li id="download_category-7">
<label class="selectit">
<input value="7" type="checkbox" name="tax_input[download_category][]" id="in-download_category-7"> Бизнес</label>
</li>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Sovetnikov, 2019-02-27
@Sovetnikov

Something like this
ec = EC.text_to_be_present_in_element((By.CSS_SELECTOR, 'input'), text='Business')
element = driver(ec)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question