Share
Go down
snehal mulay
Posts : 4
Join date : 2011-03-18

Page load issue

on Fri Mar 18, 2011 2:03 pm
Hi,

I am trying to access the table element on the page. but the table is very big. It takes time to load the page. When it tries to access the table element after 2nd 3rd row its gives error that table element not found. I have added selenium.waitForPageToLoad("90000"); in my script. But program abruptly stops at any row saying the following output

In catch block !! com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: 'textContent' is null or not an object
expected "junit.framework.AssertionFailedError: Expected "sortlx01,
sortlx02" but saw "Loading..." instead" to match glob "" (had transformed the glob into regexp ""

Please try to help me out of this problem
snehal mulay
Posts : 4
Join date : 2011-03-18

Re: Page load issue

on Fri Mar 18, 2011 2:44 pm
I have added thead.sleep(15000)..its working Very Happy .i'll get back to u if have any other problem!!
sonam_sinha23
Posts : 1
Join date : 2011-03-28

Re: Page load issue

on Mon Mar 28, 2011 5:48 pm
Hi,

I am getting the same error, though i have added the wait still the error persists. The funny thing is that the first time i executed it, it did not throw any error, but after that it throws this error everytime. Do you have any idea how to resolve it.

Error Message :
'textContent' is null or not an object on session
snehal mulay
Posts : 4
Join date : 2011-03-18

Re: Page load issue

on Mon Mar 28, 2011 5:58 pm
I also face the same problem. you can add selenium.waitForPageToLoad("90000"); after selenium.open(link); Play with parameter in bracket.Try to increase that time.Hope u'll get solution
auto_ashish1
Active particpant
Active particpant
Posts : 21
Join date : 2011-03-10

Re: Page load issue

on Tue Apr 05, 2011 11:42 pm
There are 2 Possible solutions for this.

1) Use Thread.sleep(time). This has the drawback that it will make the code wait for a specific period

2) Better way : Use the class Wait present inside the selenium API. Wait class has a method called until. A good example of the usage is given at:
http://blog.ernster.co.uk/15


Regards
Ashish

For online Selenium training go to my website- www.sejsoft.com
Sponsored content

Re: Page load issue

Back to top
Permissions in this forum:
You cannot reply to topics in this forum