[
https://issues.jboss.org/browse/ARQAJO-34?page=com.atlassian.jira.plugin....
]
Karel Piwko updated ARQAJO-34:
------------------------------
Description:
See following code:
{code:Java}
private JQueryLocator ACCOUNT_SELECT =
jq("#AccountSelectForm\\:accountsTable\\:n");
private JQueryLocator EQUIPMENT_SELECT =
jq("#EquipmentSelectForm\\:equipmentsTable\\:n");
private JQueryLocator DETAILS_ACCOUNT =
jq("td:has(label:contains('Account')) + td");
private JQueryLocator DETAILS_EQUIPMENT =
jq("td:has(label:contains('Equipment')) + td");
@Test
public void testFoo() {
waitHttp(selenium).click(CREATE_LINK);
selenium.click(ACCOUNT_SELECT.getDescendant(jq("tbody tr:eq(3)
td:eq(1)")));
waitGui.failWith("Unable to find account
details").until(elementPresent.locator(DETAILS_ACCOUNT));
String accountDetail = waitGui.waitForChangeAndReturn("Not selected",
retrieveText.locator(DETAILS_ACCOUNT));
...
}
{code}
fails with:
java.lang.reflect.InvocationTargetException
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.framework.internal.WaitingProxy.invoke(WaitingProxy.java:54)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting_$$_javassist_0.waitForChangeAndReturn(AjaxWaiting_$$_javassist_0.java)
[testng] at
org.jboss.wfk.examples.ftest.ajocado.sportsclub.ReservationsTest.createReservationWithoutSearchTest(ReservationsTest.java:110)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
[testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
[testng] at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[testng] at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:749)
[testng] at org.testng.TestRunner.run(TestRunner.java:600)
[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:223)
[testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
[testng] at org.testng.TestNG.run(TestNG.java:856)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1137)
[testng] at org.testng.TestNG.main(TestNG.java:1101)
[testng] Caused by: com.thoughtworks.selenium.SeleniumException: missing ) after
argument list
[testng] at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
[testng] at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
[testng] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.interception.CommandContextImpl.invoke(CommandContextImpl.java:103)
[testng] at
org.jboss.arquillian.ajocado.interception.InterceptionProxyImpl.invoke(InterceptionProxyImpl.java:112)
[testng] at $Proxy10.doCommand(Unknown Source)
[testng] at
com.thoughtworks.selenium.DefaultSelenium.waitForCondition(DefaultSelenium.java:627)
[testng] at
org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl.waitForCondition(TypedSeleniumImpl.java:664)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.framework.AjaxSeleniumContext.invoke(AjaxSeleniumContext.java:107)
[testng] at $Proxy11.waitForCondition(Unknown Source)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitExpectingTimeout(AjaxWaiting.java:163)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitForChangeAndReturn(AjaxWaiting.java:120)
[testng] ... 31 more
was:
See following code:
<code>
private JQueryLocator ACCOUNT_SELECT =
jq("#AccountSelectForm\\:accountsTable\\:n");
private JQueryLocator EQUIPMENT_SELECT =
jq("#EquipmentSelectForm\\:equipmentsTable\\:n");
private JQueryLocator DETAILS_ACCOUNT =
jq("td:has(label:contains('Account')) + td");
private JQueryLocator DETAILS_EQUIPMENT =
jq("td:has(label:contains('Equipment')) + td");
@Test
public void testFoo() {
waitHttp(selenium).click(CREATE_LINK);
selenium.click(ACCOUNT_SELECT.getDescendant(jq("tbody tr:eq(3)
td:eq(1)")));
waitGui.failWith("Unable to find account
details").until(elementPresent.locator(DETAILS_ACCOUNT));
String accountDetail = waitGui.waitForChangeAndReturn("Not selected",
retrieveText.locator(DETAILS_ACCOUNT));
...
}
</code>
fails with:
java.lang.reflect.InvocationTargetException
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.framework.internal.WaitingProxy.invoke(WaitingProxy.java:54)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting_$$_javassist_0.waitForChangeAndReturn(AjaxWaiting_$$_javassist_0.java)
[testng] at
org.jboss.wfk.examples.ftest.ajocado.sportsclub.ReservationsTest.createReservationWithoutSearchTest(ReservationsTest.java:110)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
[testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
[testng] at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[testng] at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:749)
[testng] at org.testng.TestRunner.run(TestRunner.java:600)
[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:223)
[testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
[testng] at org.testng.TestNG.run(TestNG.java:856)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1137)
[testng] at org.testng.TestNG.main(TestNG.java:1101)
[testng] Caused by: com.thoughtworks.selenium.SeleniumException: missing ) after
argument list
[testng] at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
[testng] at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
[testng] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.interception.CommandContextImpl.invoke(CommandContextImpl.java:103)
[testng] at
org.jboss.arquillian.ajocado.interception.InterceptionProxyImpl.invoke(InterceptionProxyImpl.java:112)
[testng] at $Proxy10.doCommand(Unknown Source)
[testng] at
com.thoughtworks.selenium.DefaultSelenium.waitForCondition(DefaultSelenium.java:627)
[testng] at
org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl.waitForCondition(TypedSeleniumImpl.java:664)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.framework.AjaxSeleniumContext.invoke(AjaxSeleniumContext.java:107)
[testng] at $Proxy11.waitForCondition(Unknown Source)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitExpectingTimeout(AjaxWaiting.java:163)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitForChangeAndReturn(AjaxWaiting.java:120)
[testng] ... 31 more
WaitForChangeAndReturn is not working correctly
-----------------------------------------------
Key: ARQAJO-34
URL:
https://issues.jboss.org/browse/ARQAJO-34
Project: Arquillian Ajocado
Issue Type: Bug
Affects Versions: 1.0.0.Alpha1
Reporter: Karel Piwko
Assignee: Lukas Fryc
Fix For: 1.0.0.Alpha2
Attachments: foo
See following code:
{code:Java}
private JQueryLocator ACCOUNT_SELECT =
jq("#AccountSelectForm\\:accountsTable\\:n");
private JQueryLocator EQUIPMENT_SELECT =
jq("#EquipmentSelectForm\\:equipmentsTable\\:n");
private JQueryLocator DETAILS_ACCOUNT =
jq("td:has(label:contains('Account')) + td");
private JQueryLocator DETAILS_EQUIPMENT =
jq("td:has(label:contains('Equipment')) + td");
@Test
public void testFoo() {
waitHttp(selenium).click(CREATE_LINK);
selenium.click(ACCOUNT_SELECT.getDescendant(jq("tbody tr:eq(3)
td:eq(1)")));
waitGui.failWith("Unable to find account
details").until(elementPresent.locator(DETAILS_ACCOUNT));
String accountDetail = waitGui.waitForChangeAndReturn("Not selected",
retrieveText.locator(DETAILS_ACCOUNT));
...
}
{code}
fails with:
java.lang.reflect.InvocationTargetException
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.framework.internal.WaitingProxy.invoke(WaitingProxy.java:54)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting_$$_javassist_0.waitForChangeAndReturn(AjaxWaiting_$$_javassist_0.java)
[testng] at
org.jboss.wfk.examples.ftest.ajocado.sportsclub.ReservationsTest.createReservationWithoutSearchTest(ReservationsTest.java:110)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
[testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
[testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
[testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
[testng] at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
[testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[testng] at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
[testng] at org.testng.TestRunner.privateRun(TestRunner.java:749)
[testng] at org.testng.TestRunner.run(TestRunner.java:600)
[testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
[testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:223)
[testng] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[testng] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[testng] at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
[testng] at org.testng.TestNG.run(TestNG.java:856)
[testng] at org.testng.TestNG.privateMain(TestNG.java:1137)
[testng] at org.testng.TestNG.main(TestNG.java:1101)
[testng] Caused by: com.thoughtworks.selenium.SeleniumException: missing ) after
argument list
[testng] at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
[testng] at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
[testng] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.interception.CommandContextImpl.invoke(CommandContextImpl.java:103)
[testng] at
org.jboss.arquillian.ajocado.interception.InterceptionProxyImpl.invoke(InterceptionProxyImpl.java:112)
[testng] at $Proxy10.doCommand(Unknown Source)
[testng] at
com.thoughtworks.selenium.DefaultSelenium.waitForCondition(DefaultSelenium.java:627)
[testng] at
org.jboss.arquillian.ajocado.framework.TypedSeleniumImpl.waitForCondition(TypedSeleniumImpl.java:664)
[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[testng] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[testng] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[testng] at java.lang.reflect.Method.invoke(Method.java:597)
[testng] at
org.jboss.arquillian.ajocado.framework.AjaxSeleniumContext.invoke(AjaxSeleniumContext.java:107)
[testng] at $Proxy11.waitForCondition(Unknown Source)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitExpectingTimeout(AjaxWaiting.java:163)
[testng] at
org.jboss.arquillian.ajocado.waiting.ajax.AjaxWaiting.waitForChangeAndReturn(AjaxWaiting.java:120)
[testng] ... 31 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira