Record and Replay Field Not Found

1 view
Skip to first unread message

Krishna Aradhi

unread,
Jul 13, 2009, 12:06:15 AM7/13/09
to selenium-users...@googlegroups.com
We have problem in replaying recorded script, It throws an exception saying the field (text box) is not found. When we open the page and view the HTML source the field is very much present with the same name and id under form. Is there any limitaion on field name, length, format etc?

Envoirnment: Liferay Portal, ICEFaces, JSF

Given below is the Trace:

com.thoughtworks.selenium.SeleniumException: ERROR: Element _UserDetails_WAR_UserDetails_INSTANCE_z8Tp_:form1:userId not found\\     at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)\\     at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)\\     at com.thoughtworks.selenium.DefaultSelenium.type(DefaultSelenium.java:291)\\     at mcl2.testUntitled(mcl2.java:19)\\     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\\     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\\     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\\     at java.lang.reflect.Method.invoke(Unknown Source)\\     at junit.framework.TestCase.runTest(TestCase.java:168)\\     at junit.framework.TestCase.runBare(TestCase.java:134)\\     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212)\\     at junit.framework.TestResult$1.protect(TestResult.java:110)\\     at junit.framework.TestResult.runProtected(TestResult.java:128)\\     at junit.framework.TestResult.run(TestResult.java:113)\\     at junit.framework.TestCase.run(TestCase.java:124)\\     at junit.framework.TestSuite.runTest(TestSuite.java:232)\\     at junit.framework.TestSuite.run(TestSuite.java:227)\\     at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:90)\\     at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)\\     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\\     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)\\     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)\\     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)\\     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

anilkumarch

unread,
Jul 13, 2009, 9:25:07 AM7/13/09
to selenium-users...@googlegroups.com
While replaying the script slow down the execution speed (in IDE, below Base URL).

when ur application is slow sometimes it will throw element not found execption.

Krishna Aradhi

unread,
Jul 14, 2009, 12:21:56 AM7/14/09
to selenium-users...@googlegroups.com
Cool. I replayed the script from Selenium-RC after adding "selenium.WaitForPageToLoad("30000")" after the click event on the URL which was taking some time to load. The script works now. Thanks {emoticon:__jive_emoticon_name=happy}

Nellore krishna kumar

unread,
Jul 14, 2009, 12:25:14 AM7/14/09
to selenium-users...@googlegroups.com
Hi,

      Could you verify line number 19 of your code.

Thanks,
Nellore Krishna Kumar

Reply all
Reply to author
Forward
0 new messages