Solved

Why are some ads not showing up in Selenium RC?

Posted on 2011-03-22
3
554 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The Quality Assurance engineer of an Agile scrum team must "own" the acceptance criteria for sprint tasks.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
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 Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now