I am trying to match text and check the box. I am trying to get text or innerHTML from an input tag of type checkbox . I tried getText() ; it returns empty, innerHTML , innerText returns null . I can get the value and all other related tag attributes, but not text. I tried to get the text by executing a java script through selenium, which also returns null , or is empty could someone help me? The text is visible - not hidden.
virus source share