Solved

Why are some ads not showing up in Selenium RC?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Gmail Account risks 4 74
Do we need servers??? 5 188
Cordova Camera plugin fails 2 93
get multiple images to align right 5 41
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
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:
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

914 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

14 Experts available now in Live!

Get 1:1 Help Now