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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:12:50+00:00 2026-05-22T02:12:50+00:00

I am having trouble clicking or interacting with some page elements. They seem like

  • 0

I am having trouble clicking or interacting with some page elements. They seem like normal DOM objects. just buttons here is the code for one

<div style="clear: both; text-align: right">
 <img id="nextstep" class="nextbtn" height="21" alt="" src="/edit/images/author/next.png">
</div>

After clicking a button as “Upload file” another pop up window was opened. My task is to upload a file at pop up window and back to original window. I’ll try to explain

I start a webDriver for

http://www.test.com (<- made up name for example)

I login

click upload a file button

After this click our site redirects to http://www.foo.com instead of the above I am using the same driver created earlier and I try to interact with the buttons on the post upload page

button.click()

It never finds these buttons but they are there in firebug and appear normal.

  • 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-22T02:12:50+00:00Added an answer on May 22, 2026 at 2:12 am

    You may try to switch to the window again after the redirect.

    Save you window handle:

    String myWindowHandle = driver.getWindowHandle();
    

    redirect to the page you want and then call switchTo using the window handle:

    driver.switchTo().window(myWindowHandle );
    

    Does your page contain any frames? It may also be possible that you are not in the correct frame after the redirect.

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

Sidebar

Related Questions

I am having trouble using JQueryUI with salesforce standard elements. Basically, I want to
Hey basically just having a little trouble with the following, submitting a message from
I am having trouble building a Python function that launches TkInter objects, with commands
I am currently having trouble with the following (here is some sample code first):
I'm having some trouble with editing a gridview row's background color when Editing it.
Basically I am trying to show hide divs and links, but having some trouble.
I am navigating a site using python's mechanize module and having trouble clicking on
I am having trouble with the checked binding: clicking on the checkbox doesn't update
I'm having trouble doing scrolling...What I want to do is after clicking a button
I just downloaded MooTools 1.4. I'm having trouble connecting a button click to the

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.