I am creating a test for clicking a radio button by clicking "Yes"
radio button code:
<div role="group" class="btn-group btn-group-toggle">
<label class="btn btn-primary">
<input name=".product2" autocomplete="off" value="true" type="radio"> Yes </label>
i already tried:
time.sleep(3)
driver.find_element_by_css_selector("input[name*='product2'] [value='true']").click();
but it returns an error:
Element <input name=".product2" type="radio">
could not be scrolled into view
Is there any other selector that i can use to click "Yes"? or is there a missing details using css selector?
I also tried find_element_by xpath
by still have the same result.