Best Regards,
Aniket Gadre
“Programming can be fun, so can cryptography; however they should not be combined.”
--
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-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/af15ac62-90fc-49ba-bc66-51435ba24825%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Tim,In my application there are many places where AJAX has been used..When you click on some element the progress bar will load and you dont know when it will be disappeared...so for that reason i have used the below code and it worked for me....Wait<WebDriver> wait = new WebDriverWait(driver, 120);wait.until(ExpectedConditions.invisibilityOfElementLocated(locator));
for the page load, it is a trouble because ,such as the ajax is triggered in javascript onload event, at this time, you almost no opportunity to inject your javascript codes into web page, if you can control your source code, you can add such javascript in your source code. If not, I guess waiting some condition is a possible solution.
How did you inject it after a new page loads?I think you must want to know how to inject js before onload event, I am sorry it seams not easy. Add a http proxy may works but I never try it.
If you introduce a proxy such as browser mob proxy then you could inject anything before the page even reaches the browser. Never tried doing it but I think it definitely is a possibility.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b6ffcc04-ef40-4a91-bbb5-c5ee65ddb36e%40googlegroups.com.