Java Null pointer exception when trying to click on an element that is present in a block and becomes visible
I am trying to click on an element which is present in a block and the block itself becomes visible when another element "Your Trips" is clicked on. I am able to find the element and click on Your Trips, but then when I try to click on the Sign In button in the block I am getting Null Pointer execption.
Name of the site: https://www.cleartrip.com/
I want to automate the sign in process using Page object Model.
carriann last edited by
You most likely have to wait for the element to be visible. Have a look at https://stackoverflow.com/questions/20903231/how-to-wait-until-an-element-is-present-in-selenium