<div class="signup-agreement checkbox-item clearfix" xpath="1">
<label for="memberContract" ng-class="{'checked': vm.memberContract}" class="checked">
<div class="custom-input-wrapper custom-type-checkbox checked" ng-class="{'checked': vm.memberContract}" style="">
<input class="customized ng-dirty ng-valid-parse ng-touched ng-not-empty ng-valid ng-valid-required" id="memberContract" name="checkbox_2" type="checkbox" ng-model="vm.memberContract" required="" ng-class="{ 'error': (registerForm.checkbox_2.$invalid && registerForm.checkbox_2.$touched)}" style="">
</div>
<div class="checkbox-text" style="">
<span translate="CHECKOUT_SUMMARY_MEMBERSHIP_CONDITIONS" style=""><strong style="">Membership Conditions</strong> and <strong>Protecting My Personal Data</strong>I have read and accept</span>
<a class="signup-agreement-link" href="javascript:void(0)" ng-click="vm.openAllRegisterContract()">
<i class="icon icon-question-mark"></i>
</a>
</div>
<p ng-show="(registerForm.$invalid && registerForm.$touched)" class="error-message spacing ng-hide">
Please check the fields mentioned above.
</p>
</label></div>
мой код:
await Task.Delay(1000);
IWebElement checkbox = driver.FindElement(By.Name("checkbox_2"));
IJavaScriptExecutor jse = (IJavaScriptExecutor)driver;
jse.ExecuteScript("arguments[0].click();", checkbox);`
other things i tried: `IWebElement aaa = driver.FindElement(By.XPath("//input[@id='memberContract']"));
aaa.Click();
Это флажок, с которым я столкнулся при регистрации на сайте. Я застрял здесь, пожалуйста, помогите мне.