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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:37:48+00:00 2026-05-28T14:37:48+00:00

I just started using Selenium 2 tonight so this will be very basic (I

  • 0

I just started using Selenium 2 tonight so this will be very basic (I hope…).

I am trying to log onto my account at http://contentparadise.com/

I go to the sign in page https://www.contentparadise.com/signin.aspx and am able to enter the id/pw, then submit. But even with the correct id/pw, it returns me to the signin page – with a small messagebox added with the words “The following error has occurred”. Obviously the id/pw in the code is wrong, I’m trying to detect this as an error – but I get it even with my real id/pw.

How do I detect and read this messagebox, and why doesn’t the correct set go to the home page?

I use the same code on another site, use the correct set, and it takes me to the home page as it should.

Is this a case of the signin page using javascript? If you look at the source for the signin page, look for the string “” to start that part of the form.

Here’s the code:

from selenium import webdriver
import sys
import os

userID = "wajahbaru"
pw = "marmalade"

wdrv = webdriver.Firefox()
wdrv.get("https://www.contentparadise.com/signin.aspx")

print "Page #1 title is: " + wdrv.title; # should be "Sign In"

unamefield = wdrv.find_element_by_name("ctl00$ContentPlaceHolder1$txtUserName").send_keys(userID)
pwdfield = wdrv.find_element_by_name("ctl00$ContentPlaceHolder1$txtPassword").send_keys(pw)
pwdfield = wdrv.find_element_by_name("ctl00$ContentPlaceHolder1$btnLogin").click()

print "Page #2 title is: " + wdrv.title; # if logged in this should be "Content Paradise: Buy or Sell Software, 2D Content, 3D Models and Audio."

wdrv.get_screenshot_as_file("test.jpg")
wdrv.quit()
  • 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-28T14:37:49+00:00Added an answer on May 28, 2026 at 2:37 pm

    Search for “Popup dialogs” in the link below .. if you want to learn more, search for that code you find in Google, and you’ll get some good stuff 😉

    http://readthedocs.org/docs/selenium-python/en/latest/navigating.html?highlight=popup

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

Sidebar

Related Questions

I've just started using Selenium-IDE (not looked at selenium-RC yet: if somebody tells me
I just started using the chrome developer tools for some basic html websites and
Just started using the Ace editor (http://ace.ajax.org) and although it works fine on a
Just started using log4net and trying to get my head around the config and
I just started using resharper and I am trying to learn all the hotkeys
Just started using Apache Commons StringEscapeUtils . According to http://www.w3schools.com/tags/ref_entities.asp , Ö should correspond
Just started using this technique and am having strange results on the PC side.
I just started using Matplotlib and am trying to change the color of the
I just recently started using Selenium Webdriver (as opposed to Selenium 1.0), and I
I just started using Datamapper. I am trying to update an object. I get

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.