Hi Ashish,
Below is the complete exceotion I am getting. driver.get("http://zoho.com") is working correctly in openBrowser function
but not when i write the code driver.get("http://zoho.com")
in navigate function. But the sysytem.out.println function is working in navigate function. not sure why the url is not passing to
firefox when the firefox is opened.
Exception
LoginTest -- openBrowser -- --Mozilla
Opening browser--Mozilla
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
LoginTest -- navigate -- --http://zoho.com
Navigate to url http://zoho.com
Exception in thread "main" java.lang.NullPointerException
at com.qtpselenium.hybrid.util.GenericKeywords.navigate(GenericKeywords.java:22)
at com.qtpselenium.hybrid.util.Keywords.main(Keywords.java:25)
Hi Ashish,
I had come on Skype today 7.15AM PST. But did not get a response from you. Please let me know your convenient time to look into the issue.
Hi Ashish,
My code [b:3sa4p1x7]driver.get("http://zoho.com"); [/b:3sa4p1x7] started working in navigation function when i declared the variable static on top. Is it ok to declare driver as static?
like Public Static Webdriver driver;