ElementNotVisibleException: element not visible when Popup window

In my web application signup link which open the popup window and in that one link ‘Create a Account’ which is not visible. I observed that when click on popup add style=“left: 0px; display: block;” in html.

I tried all Xpath, Class path and link but not get success

You can call the java script to change the style from block to inline and then click on it.

WebUI.executeJavaScript('document.getElementById("<locator>").setAttribute("display","inline")', null)

Rahul said:

WebUI.executeJavaScript('document.getElementById("<locator>").setAttribute("display","inline")', null)

I got this message when I use what you provided above.

Cannot read property ‘setAttribute’ of null