selenium - How to test the ads displayed on UI, using Selenim WebDriver/RC -
how test ads displayed on web page. ads injected thorugh plugins. when record using ide, displays adds on firefox browser. when run webdriver selenium script eclips, not show ads, on webpage of browser launched selenium..
please let me know, how rectify issue.
thanks, ashfaq
by default, selenium uses firefox profile separate normal profile when open browser manually. so, plugins you've added using normal profile not available selenium default.
so, if ads injected page plugin you've installed, explain why aren't seeing them without plugin when open ff selenium.
you can create profile use selenium following these steps:
- make sure firefox instance closed
- click start>run
- type
firefox.exe -profilemanager -no-remote
- select “create profile”
- click “next”
- enter new profile name
- select directory folder store new profile
- click “finish”
- select “don’t ask @ startup”
- click “start firefox” , configure settings
- set profile “default” (to use normal profile outside selenium)
and in java, set driver use profile - example, if create profile called "selenium", java might this:
profilesini profile = new profilesini(); firefoxprofile ffprofile = profile.getprofile("selenium"); driver = new firefoxdriver(ffprofile);
Comments
Post a Comment