how to check check box that not visible

hi,

I need to mark a check box, but it fail-


error: element is not visible .

this is the element:


<input _ngcontent-c5="" class="lb-checkbox ng-untouched ng-pristine ng-valid" type="checkbox" id="1" ng-reflect-model="false">

Try to hit it:


driver.FindElement(By.Id("1")).Click()

 

 

Default Asked on May 15, 2018 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    $(‘input.flat:checkbox’).css(‘opacity’, ‘1’);

    $(‘#myDiv’).print();

    $(‘input.flat:checkbox’).css(‘opacity’, ‘0’)

    Try it may be helpful!

     

    Default Answered on May 16, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.