Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7683691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:51:10+00:00 2026-05-31T18:51:10+00:00

I’m new to Selenium and I have come across a test case issue in

  • 0

I’m new to Selenium and I have come across a test case issue in Internet Explorer 9 (IE9). I am using NUnit to run a test case to verify that a specific image is present in a specific location. The test case passes in Firefox and Chrome, but fails in IE9.

I have heard that IE has issues with Xpath, but could not find any definitive information on that subject. Is there any way to make this command work in IE using Xpath? Is there a better way I could run this verification without Xpath? Applicable info is below.

Note: I am also new to C#, so it could be a C# issue as well.

The command =

Assert.IsTrue(selenium.IsElementPresent("//html/body/form/div[8]/div[3]/div[3]/div[2]/div/div/table/tbody/tr/td/img[@src='images/4a00ac39-be42-46e0-8bd4-5cc786197357.jpg']"));

The HTML for the image =

<img style="padding-top: 3px; padding-bottom: 0px; background-color: transparent;" src="images/4a00ac39-be42-46e0-8bd4-5cc786197357.jpg">

The CSS path for the image =

html body.v4master form#aspnetForm div#s4-workspace div#s4-mainarea.s4-pr div#MSO_ContentTable.s4-ca div.s4-ba div.ms-bodyareacell div#ctl00_MSO_ContentDiv table.maintable tbody tr td img

Addtionally, the command works and the test case passes in IE9 when I drop the specific image verification part:

Assert.IsTrue(selenium.IsElementPresent("//html/body/form/div[8]/div[3]/div[3]/div[2]/div/div/table/tbody/tr/td/img"));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:51:11+00:00Added an answer on May 31, 2026 at 6:51 pm

    Best guess: IE is normalizing the SRC= attribute to the fully-qualified URL of the image. Try replacing img[src="...'] with img[contains(@src, '...'], which ought to work just as well with a relative or absolute URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a test method created using Selenium, something similar to this: [TestFixture] public
I am trying to test a web page using Selenium IDE. Am new to
I'm very new to Selenium RC. I'm using .NET (though I don't think it
I'm new to Selenium RC, having previously used Selenium IDE and only run tests
I have a the following selenium test suite inheriting from the same base class,
I am using Selenium 2 (latest release from Googlecode) and I have it firing
I am using Selenium Grid with TestNG to run my tests in parallel. I
I'm using Selenium Java 2.0b3 . I have this code: ... WebDriver driver =
I am using Selenium RC and JUnit to write tests. If a @Test fails,
Background I have been working towards automating my Selenium test suite that I developed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.