Using WebDriverWait wait getting a NullPointerException
595 views
Skip to first unread message
SeleniumMember
unread,
Jul 16, 2015, 5:17:35 PM7/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to seleniu...@googlegroups.com
I am getting NullPointerException error while using the WebDriverWait. I don't know what I am doing wrong here. I am able to launch the Firefox browser. Can anyone tell me what am I missing or setting it incorrect here ?
Test - Extends LoginLogoutMethod @Test public void testLogin() { LoginLogoutMethod login = new LoginLogoutMethod (); login.login("admin", "admin"); }
Jim Evans
unread,
Jul 16, 2015, 5:21:31 PM7/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to seleniu...@googlegroups.com
You've only provided the method body here, but I strongly suspect that your 'driver' variable is what's null. That would be the first thing I would check.
SeleniumMember
unread,
Jul 16, 2015, 11:13:39 PM7/16/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to seleniu...@googlegroups.com
Oops, I forgot to add rest of the code. I did the following. And now, its typing in the username and password.