Solved

Why are some ads not showing up in Selenium RC?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tag title an image 13 30
disclaimer when opening internet 2 39
When should I use a controller? 3 34
Forms that calculate points for wordpress 10 25
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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 +…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

773 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