Solved

Why are some ads not showing up in Selenium RC?

Posted on 2011-03-22
3
592 Views
Last Modified: 2013-11-19
I am monitoring the ads on a website to see if if my company's website
shows up on the side banner, using Selenium RC. Although some of the
ads displayed are common between Selenium RC and a regular Firefox
browser, I notice that some ads show up on the regular FF browser
which don't seem to get displayed on the Selenium RC Firefox browser.
This includes my company's ad link.
My code is to keep refreshing the page until i see the ad, which
hasn't happened yet for the last hour.
Please let me know any ideas. Is the ad display algorithm completely random? I see some repetitions in both the Selenium RC FF browser and the regular FF browser, but cannot find the ad I am looking for in the RC browser.
0
Comment
Question by:renisenbe
3 Comments
 
LVL 6

Accepted Solution

by:
Craig Kehler earned 500 total points
ID: 35201502
Have you tried changing your test to check for one of the commonly seen ads? I'd unit test the test first and make sure it is correctly detecting *any* ads in the side banner. If you post the code you are using it may help.

Are you clearing out cookies between each test? Its hard to guess how the ads are rotating based on the given information but you could try closing and reopening the browser in each iteration.

Also when all else fails you can use getHtmlSource() and parse it manually.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question