Answer the question
In order to leave comments, you need to log in
Python selenium how to click on list item by input value?
I 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
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 questionAsk a Question
731 491 924 answers to any question