Getting java.lang.InstantiationException: in selenium | Selenium Forum
M
Posted on 08/04/2016
Hi Ashish,

I am trying to implement POM page factory framework in my project but I am getting java.lang.InstantiationException: :( :x :x

Can you please help on this ? I am sharing code on your email

M
Replied on 09/04/2016

send a screen shot.


M
Replied on 09/04/2016

[list=][/list]

Responsive image

M
Replied on 09/04/2016

Hi Ashish,

Please find attached images.

Responsive image

M
Replied on 10/04/2016

send me your project.


M
Replied on 11/04/2016

hi Ashish,

I resolved the issue..its working now


M
Replied on 11/04/2016

what was the problem?


M
Replied on 11/04/2016

in commonallpages.java constructor was not public hence

silly mistake Responsive image Responsive image