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

  • Home
  • SEARCH
  • 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 9029631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:17:32+00:00 2026-06-16T07:17:32+00:00

I am new to Selenium and I’m running into a problem where the code

  • 0

I am new to Selenium and I’m running into a problem where the code snippet below throws a NoElementFoundException when run via the Chrome driver, but hangs when using the Firefox driver. The expected behavior is both Chrome and Firefox should throw the exception.

I tried embedding this in a try-catch but no exception is caught on Firefox. I searched the Internet, but can’t seem to find other posts about the same issue.

public static String getAlbumName(){
    WebElement albumName = Browsers.getCurrentDriver().findElement(By.xpath("//div[contains(@class,...")));
    String albumNameText = albumName.getText();
    return albumNameText;
}

This is the exception through by Chrome:
NoSuchElementException: The element could not be found (WARNING: The server did not provide any stacktrace information)

I’m using Selenium 2.25.0

Any ideas why I’m seeing this discrepancy?

Thanks!

  • 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-06-16T07:17:34+00:00Added an answer on June 16, 2026 at 7:17 am

    Turns out this is a known bug for Firefox 17 in Selenium that will be fixed in Selenium 2.27
    http://code.google.com/p/selenium/issues/detail?id=4814

    Downgrading to Firefox 16 resolved my problem.

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

Sidebar

Related Questions

I have following code: Capybara.register_driver :selenium do |app| driver = Capybara::Selenium::Driver.new(app, browser: :firefox, profile:
I am quite new to Selenium. Currently i am using selenium driver for writing
Is it a good idea to start new test framework using Selenium web driver
I'm new to Selenium RC, having previously used Selenium IDE and only run tests
I'm new to Selenium WebDriver using EclipseIDE with TestNG. I'm currently running this sample
I'm new to Selenium and C#. I know this code is not optimal, can
I am totally new to Selenium. I want to execute a javascript snippet in
I am new to Selenium. Whenever I run the selenium script to open the
I am new to selenium and I am using python but I have a
I’m new to Selenium and I have come across a test case issue in

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.