Answer the question
In order to leave comments, you need to log in
How to click on Angular Checkbox in Selenium?
I'm having problems, the site is written in angular and I need to click on the checkbox on this site, but none of the elements are responsive, how can I do this?
<form-tree ng-if="::!item.isCloneContainer" ng-repeat="item_i in ::item.items" item="item_i"
class="ng-scope ng-isolate-scope">
<epgu-field-checkbox item="item" step-index="stepIndex" class="ng-scope ng-isolate-scope">
<div ng-show="(!!item.visible)" full-path="form.FormStepInfo.Panel_info.check">
<div class="PGU-FieldCheckBox-container PGU-Error" ng-class="{
'PGU-Error' : item.error,
'editor-item-selected': item.currentItem,
'editor-item-hovered': item.hoverItem
}">
<div class="PGU-FieldCheckBox PGU-FieldCheckBox-MarginTop-default PGU-Required"
ng-class="{'PGU-Disabled': el.disabled,'PGU-Readonly': el.readonly,'PGU-FieldCheckBox-active': el.checked,'PGU-Required': el.required,'PGU-FieldCheckBox-WithIcons': el.iconType,'PGU-FieldCheckBox-LabelLeft': el.labelToLeft}"
el="item" pgu-disabled="item.disabled" hook-checkbox="item.disabled" toggle="toggleValue">
<!-- ngIf: ::(el.labelToLeft && !useTranslate) -->
<!-- ngIf: ::(el.labelToLeft && useTranslate) -->
<span class="PGU-FieldCheckBoxWrap" tabindex="1">
<input type="checkbox" id="form.FormStepInfo.Panel_info.check">
<i class="PGU-LabelIcon">
<i></i>
</i><!-- ngIf: ::el.iconType -->
<!-- ngIf: ::(!el.labelToLeft && !useTranslate) -->
<label data-ng-if="::(!el.labelToLeft && !useTranslate)" for
class="PGU-FieldLabel-List ng-binding ng-scope"
ng-bind-html="(el.extTextResource | textResource ) || el.label">С условиями подачи заявления согласен (а)</label>
<!-- end ngIf: ::(!el.labelToLeft && !useTranslate) -->
<!-- ngIf: ::(!el.labelToLeft && useTranslate) -->
</span>
</div><!-- ngIf: item.hint -->
<!-- ngIf: item.error -->
<div class="PGU-FieldError ng-binding ng-scope" data-ng-if="item.error">Поле обязательно для
заполнения
</div><!-- end ngIf: item.error --></div>
</div>
</epgu-field-checkbox>
</form-tree>
driver.find_element(By.CSS_SELECTOR, 'label[class=ng-binding]').send_keys(Keys.RETURN)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question