how to check check box that not visible


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:




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

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


    $(‘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.