Discussion:
Instantiation Exception with Page Objects
Adil Imroz
2014-02-17 11:19:45 UTC
Permalink
Hello All,

I have read about Page Object and Page factory and tried to implement the
same in my selenium automation script. But i am getting an Instantiation
Exception though I have tried all means to correct them.
It would be great if someone can help me where am doing mistake.

Also en early response towards solving this would be highly helpful.

*My Page objects are as follows :: *http://pastebin.com/X1kNDWA5

*My Test using Page Object are as follows :: *http://pastebin.com/KZKJ9CKL

*The Error that I get on executing ::*

FAILED: Test

java.lang.RuntimeException: java.lang.InstantiationException:
com.agilemd.androidAutomation.pages.LoginPage

at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:136)

at org.openqa.selenium.support.PageFactory.initElements(PageFactory.java:66)

at com.agilemd.androidAutomation.tests.SampleTest.Test(SampleTest.java:19)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:84)

at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)

at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)

at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)

at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)

at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

at org.testng.TestRunner.privateRun(TestRunner.java:767)

at org.testng.TestRunner.run(TestRunner.java:617)

at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)

at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)

at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

at org.testng.SuiteRunner.run(SuiteRunner.java:240)

at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)

at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)

at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)

at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)

at org.testng.TestNG.run(TestNG.java:1057)

at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)

at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)

at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

Caused by: java.lang.InstantiationException:
com.agilemd.androidAutomation.pages.LoginPage

at java.lang.Class.newInstance(Class.java:359)

at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:133)

... 26 more

Regards
Adil
skype :: adilimroz
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9332e8c5-7909-4c4f-a417-5a6603abe34f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Mark Collin
2014-02-17 13:46:11 UTC
Permalink
Is your driver object set?
Post by Adil Imroz
Hello All,
I have read about Page Object and Page factory and tried to implement the
same in my selenium automation script. But i am getting an Instantiation
Exception though I have tried all means to correct them.
It would be great if someone can help me where am doing mistake.
Also en early response towards solving this would be highly helpful.
*My Page objects are as follows :: *http://pastebin.com/X1kNDWA5
*My Test using Page Object are as follows :: *http://pastebin.com/KZKJ9CKL
*The Error that I get on executing ::*
FAILED: Test
com.agilemd.androidAutomation.pages.LoginPage
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:136)
at org.openqa.selenium.support.PageFactory.initElements(
PageFactory.java:66)
at com.agilemd.androidAutomation.tests.SampleTest.Test(SampleTest.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
com.agilemd.androidAutomation.pages.LoginPage
at java.lang.Class.newInstance(Class.java:359)
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:133)
... 26 more
Regards
Adil
skype :: adilimroz
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d64fe03c-ec86-4380-9466-8b2b05683395%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
erki manniste
2014-02-17 15:05:48 UTC
Permalink
PageObject must be initiated before you can use it, you are doing it the
other way around. :

public class LoginPage {

private RemoteWebDriver driver;

public LoginPage(RemoteWebDriver driver){
this.driver = driver;
PageFactory.initElements(driver, LoginPage.class);
}

@FindBy(name = "Email")
public WebElement EmailField;

@FindBy(xpath =
"//linear[1]/window[1]/relative[1]/relative[1]/window[1]/linear[1]/linear[1]/linear[1]/linear[1]/textfield[2]"
)
public WebElement PasswordField;

@FindBy(name = "Sign in")
public WebElement SigninBtn;


public LoginPage login(String emailAddress, String password) throws
InterruptedException {

this.EmailField.sendKeys(emailAddress);
this.PasswordField.sendKeys(password);
this.SigninBtn.click();
return this;
}

}

Test:

@Test
public void Test() throws InterruptedException {


LoginPage loginpage = new LoginPage();
loginpage.login("qa_user150214-***@public.gmane.org", "test");



}
Post by Adil Imroz
Hello All,
I have read about Page Object and Page factory and tried to implement the
same in my selenium automation script. But i am getting an Instantiation
Exception though I have tried all means to correct them.
It would be great if someone can help me where am doing mistake.
Also en early response towards solving this would be highly helpful.
*My Page objects are as follows :: *http://pastebin.com/X1kNDWA5
*My Test using Page Object are as follows :: *http://pastebin.com/KZKJ9CKL
*The Error that I get on executing ::*
FAILED: Test
com.agilemd.androidAutomation.pages.LoginPage
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:136)
at org.openqa.selenium.support.PageFactory.initElements(
PageFactory.java:66)
at com.agilemd.androidAutomation.tests.SampleTest.Test(SampleTest.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
com.agilemd.androidAutomation.pages.LoginPage
at java.lang.Class.newInstance(Class.java:359)
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:133)
... 26 more
Regards
Adil
skype :: adilimroz
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/27f0c1c0-4e16-4d68-841f-3ac817198bf9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Mark Collin
2014-02-17 15:27:43 UTC
Permalink
Not true, have a look at lines 65-69
of https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/support/PageFactory.java
Post by erki manniste
PageObject must be initiated before you can use it, you are doing it the
public class LoginPage {
private RemoteWebDriver driver;
public LoginPage(RemoteWebDriver driver){
this.driver = driver;
PageFactory.initElements(driver, LoginPage.class);
}
@FindBy(name = "Email")
public WebElement EmailField;
@FindBy(xpath =
"//linear[1]/window[1]/relative[1]/relative[1]/window[1]/linear[1]/linear[1]/linear[1]/linear[1]/textfield[2]"
)
public WebElement PasswordField;
@FindBy(name = "Sign in")
public WebElement SigninBtn;
public LoginPage login(String emailAddress, String password)
throws InterruptedException {
this.EmailField.sendKeys(emailAddress);
this.PasswordField.sendKeys(password);
this.SigninBtn.click();
return this;
}
}
@Test
public void Test() throws InterruptedException {
LoginPage loginpage = new LoginPage();
;
}
Post by Adil Imroz
Hello All,
I have read about Page Object and Page factory and tried to implement the
same in my selenium automation script. But i am getting an Instantiation
Exception though I have tried all means to correct them.
It would be great if someone can help me where am doing mistake.
Also en early response towards solving this would be highly helpful.
*My Page objects are as follows :: *http://pastebin.com/X1kNDWA5
*My Test using Page Object are as follows :: *
http://pastebin.com/KZKJ9CKL
*The Error that I get on executing ::*
FAILED: Test
com.agilemd.androidAutomation.pages.LoginPage
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:136)
at org.openqa.selenium.support.PageFactory.initElements(
PageFactory.java:66)
at com.agilemd.androidAutomation.tests.SampleTest.Test(SampleTest.java:19
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
com.agilemd.androidAutomation.pages.LoginPage
at java.lang.Class.newInstance(Class.java:359)
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:133)
... 26 more
Regards
Adil
skype :: adilimroz
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7df375a7-ff96-4bf9-8cfb-3e31db161338%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
erki manniste
2014-02-17 15:44:11 UTC
Permalink
Ok, my fault,
PageFactory.initElements(driver, LoginPage.class);
does return a new instance of that class given as 2nd parameter. I always
just call it from page constructor. sry.
Not true, have a look at lines 65-69 of
https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/support/PageFactory.java
Post by erki manniste
PageObject must be initiated before you can use it, you are doing it the
public class LoginPage {
private RemoteWebDriver driver;
public LoginPage(RemoteWebDriver driver){
this.driver = driver;
PageFactory.initElements(driver, LoginPage.class);
}
@FindBy(name = "Email")
public WebElement EmailField;
@FindBy(xpath =
"//linear[1]/window[1]/relative[1]/relative[1]/window[1]/linear[1]/linear[1]/linear[1]/linear[1]/textfield[2]"
)
public WebElement PasswordField;
@FindBy(name = "Sign in")
public WebElement SigninBtn;
public LoginPage login(String emailAddress, String password)
throws InterruptedException {
this.EmailField.sendKeys(emailAddress);
this.PasswordField.sendKeys(password);
this.SigninBtn.click();
return this;
}
}
@Test
public void Test() throws InterruptedException {
LoginPage loginpage = new LoginPage();
}
Post by Adil Imroz
Hello All,
I have read about Page Object and Page factory and tried to implement
the same in my selenium automation script. But i am getting an
Instantiation Exception though I have tried all means to correct them.
It would be great if someone can help me where am doing mistake.
Also en early response towards solving this would be highly helpful.
*My Page objects are as follows :: *http://pastebin.com/X1kNDWA5
*My Test using Page Object are as follows :: *
http://pastebin.com/KZKJ9CKL
*The Error that I get on executing ::*
FAILED: Test
com.agilemd.androidAutomation.pages.LoginPage
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:136)
at org.openqa.selenium.support.PageFactory.initElements(
PageFactory.java:66)
at com.agilemd.androidAutomation.tests.SampleTest.Test(
SampleTest.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
com.agilemd.androidAutomation.pages.LoginPage
at java.lang.Class.newInstance(Class.java:359)
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:133)
... 26 more
Regards
Adil
skype :: adilimroz
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/df6aeadb-2469-4962-96ee-df4a62b9e1c8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sindhu Anand
2018-12-06 07:08:31 UTC
Permalink
Please let me know how to over come this issue.
I am getting the same error message.
Post by erki manniste
Ok, my fault,
PageFactory.initElements(driver, LoginPage.class);
does return a new instance of that class given as 2nd parameter. I always
just call it from page constructor. sry.
Not true, have a look at lines 65-69 of
https://code.google.com/p/selenium/source/browse/java/client/src/org/openqa/selenium/support/PageFactory.java
Post by erki manniste
PageObject must be initiated before you can use it, you are doing it the
public class LoginPage {
private RemoteWebDriver driver;
public LoginPage(RemoteWebDriver driver){
this.driver = driver;
PageFactory.initElements(driver, LoginPage.class);
}
@FindBy(name = "Email")
public WebElement EmailField;
@FindBy(xpath =
"//linear[1]/window[1]/relative[1]/relative[1]/window[1]/linear[1]/linear[1]/linear[1]/linear[1]/textfield[2]"
)
public WebElement PasswordField;
@FindBy(name = "Sign in")
public WebElement SigninBtn;
public LoginPage login(String emailAddress, String password)
throws InterruptedException {
this.EmailField.sendKeys(emailAddress);
this.PasswordField.sendKeys(password);
this.SigninBtn.click();
return this;
}
}
@Test
public void Test() throws InterruptedException {
LoginPage loginpage = new LoginPage();
}
Post by Adil Imroz
Hello All,
I have read about Page Object and Page factory and tried to implement
the same in my selenium automation script. But i am getting an
Instantiation Exception though I have tried all means to correct them.
It would be great if someone can help me where am doing mistake.
Also en early response towards solving this would be highly helpful.
*My Page objects are as follows :: *http://pastebin.com/X1kNDWA5
*My Test using Page Object are as follows :: *
http://pastebin.com/KZKJ9CKL
*The Error that I get on executing ::*
FAILED: Test
com.agilemd.androidAutomation.pages.LoginPage
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:136)
at org.openqa.selenium.support.PageFactory.initElements(
PageFactory.java:66)
at com.agilemd.androidAutomation.tests.SampleTest.Test(
SampleTest.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(
TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
com.agilemd.androidAutomation.pages.LoginPage
at java.lang.Class.newInstance(Class.java:359)
at org.openqa.selenium.support.PageFactory.instantiatePage(
PageFactory.java:133)
... 26 more
Regards
Adil
skype :: adilimroz
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1c422902-d5c9-42f0-80c6-06cf3f237cdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...