Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Why are some ads not showing up in Selenium RC?

Posted on 2011-03-22
3
Medium Priority
?
627 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
Craig Kehler earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

719 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