Chrome automation using selenium in vb.net
Hello,
I was using Internet Explorer for web automation. But due to compatibility issue I am planning to migrate to chrome. So I thought I can implement using Selenium.
But In selenium, it is not possible to me to find alternatives for BeforeNavigate and Documentcomplete events of Internet Explorer.
My intention is simple, When a user manually navigates to other links I want get the URL navigated and when page loads completely I want to get Documentcomplete event.
What are the alternative methods for that in selenium ?
Also I want to download the files from website, which dont have exact URL, how to control the download event using mouse clickevent in selenium (DownloadBegin and DownloadComplete) ?
Please help.
Re: Chrome automation using selenium in vb.net
You know you could just add a built in WebBrowser to your project and have it do the tasks instead of using other programs and browsers.
Re: Chrome automation using selenium in vb.net
This generally looks like a visual testing task. Are you limited to Selenium only? In case there is an option for you to try something else for this task, you could do that with a visual regression testing tool. Such as Screenster which is actually an alternative to Selenium for visual/CSS testing tasks.
Screenster is a test automation tool which performs screenshot-based comparison of different versions of your web pages. First it creates a visual baseline for a page, taking a screenshot for each user action. During the next run it takes a new screenshot at each step, compares it with the one from baseline and highlights differences. It also has a number of features for easy maintenance of tests: here is how it handles regression testing of Gmail UI.