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:

  1. make sure firefox instance closed
  2. click start>run
  3. type firefox.exe -profilemanager -no-remote
  4. select “create profile”
  5. click “next”
  6. enter new profile name
  7. select directory folder store new profile
  8. click “finish”
  9. select “don’t ask @ startup”
  10. click “start firefox” , configure settings
  11. 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

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -