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 6091607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:20:51+00:00 2026-05-23T12:20:51+00:00

I just started looking into selenium for automated testing for the past few days

  • 0

I just started looking into selenium for automated testing for the past few days and am getting pretty stuck. I’ve been looking for documentation on this but haven’t found anything very helpful but maybe one of you have found something interesting, if so I’d love to read it.

Anyway, here’s the problem: I need to open up a website. This website takes in some parameters which takes the browser to another site, however if the parameters are invalid then the next site will display a message saying “An error has occurred”.

If the second site doesn’t error out like this we want to store a few arbitrary values and echo them later. If the site does error out we want to mark the error and move on. Right now, if the second site is invalid selenium stops running.

The only way it seems to do this is to have an if-else statement though I haven’t found any mention of one in selenium. I have read somewhere that you can create some javascript on your own and then input that into selenium. The problem there is that I don’t know how to actually input the javascript into selenium.

I hope that wasn’t too confusing.

Thank you,

Jesse Smothermon

  • 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-23T12:20:51+00:00Added an answer on May 23, 2026 at 12:20 pm

    My coworker found it. code below:

    <tr>
    <td>storeEval</td>
    <td>(selenium.isElementPresent("variable_looked_at")?selenium.getText("variable_looked_at"):"N/A")</td>
    <td>Address</td>
    </tr>
    

    Thanks,

    Jesse Smothermon

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

Sidebar

Related Questions

Just some days ago I started looking into a unit test framework called check,
I have been looking at using TDD and implementing proper testing (only just started
I've been using RhinoMocks for a good while, but just started looking into Moq.
How would you test this scenario? I've just started looking into NHibernate and having
Just started looking into encryption using keys and certificates in sql server 2005/08 and
I have just started looking into using Modules in Flex and would like to
I've just started looking into this, I want to scrape my Netgear Router (
I have just started looking into .net MVC and I really like it. There
I am just started out learning Python and also started looking into Django a
I just started playing with Berkeley DB a few days ago so I'm trying

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.