how to make script to wait until ajax components get loaded in page
Page 1 of 1 • Share •
how to make script to wait until ajax components get loaded in page
Hi All,
how to make selenium webdriver script to wait until ajax components get loaded in page
by default selenium will wait until the page is loaded but if there is ajax components in that page, it is not waiting until the ajax components are loading
for example in my application
when i click the link it will redirected to respective page but after loading that page, in middle of that page some data will get will load which is related to ajax
script is waiting until the page get loaded but it is not waiting until the ajax data is loaded
please let me know how to write script to wait until the ajax components also get loaded along with page
how to make selenium webdriver script to wait until ajax components get loaded in page
by default selenium will wait until the page is loaded but if there is ajax components in that page, it is not waiting until the ajax components are loading
for example in my application
when i click the link it will redirected to respective page but after loading that page, in middle of that page some data will get will load which is related to ajax
script is waiting until the page get loaded but it is not waiting until the ajax data is loaded
please let me know how to write script to wait until the ajax components also get loaded along with page
gaveyom- Amateur

- Posts: 40
Join date: 2011-07-13
Re: how to make script to wait until ajax components get loaded in page
You can use waitForElementPresent() or something like that.
In such situation sometimes I use sleep() (PHP method).
In such situation sometimes I use sleep() (PHP method).
faramka- Professional

- Posts: 143
Join date: 2011-09-15
Location: Poland
Re: how to make script to wait until ajax components get loaded in page
Hi faramka,
thank you it is working fine
thank you it is working fine
gaveyom- Amateur

- Posts: 40
Join date: 2011-07-13
Similar topics» libmng.dll was not loaded correctly
» Off-page optimization Tips
» Samsung all hardware solution in one page.. daily updated.. get..set.. go..
» does anyone make anything and sell it?
» [Leeched] off MPGH untill i make my own hacks
» Off-page optimization Tips
» Samsung all hardware solution in one page.. daily updated.. get..set.. go..
» does anyone make anything and sell it?
» [Leeched] off MPGH untill i make my own hacks
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» sample webdriver code for php users
» which standalone server to use
» Dynamic Drop Down Selection
» It is possible to find list of all URL's exist in any web page in selenium ide
» It is possible to compare 2 same images in selenium IDE.
» how to compare 2 ULR's which is exist in same web page (View page source).
» Web Driver: Unable to click a link present inside the frame of a frameset
» Help me to get dynamicaly loaded options of dropdown in Selenium RC -Junit test case