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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:02:06+00:00 2026-06-16T04:02:06+00:00

I am looking at a web page with an overlay that contains a Choose

  • 0

I am looking at a web page with an overlay that contains a Choose File/Browse etc button
Below is a snippet from the page

<form name = "form1" method = "post" action = "UploadPhoto.aspx?PhotoUploaderFor=1" id = "form1" enctype = "multipart/form-data">
<div>...</div>
<div class = "popup-form photoUploader">
 <div class = "group data-row">
  <label>...</label>
  <input type ="file" name = "FileUpload1" id = "FileUpload1" class = "browse_file">

Watir has file_fields which can handle file uploads
I’ve tried on the test site (www.tinypic.com) and the controls work fine there

b.file_fields.exists? 

will return true

However, on the page i’m looking at with the snippet above,

 b.file_fields.exists? 

returns false

I thought it might be because of the form, so I also tried

b.form(:name => "form1").file_fields.exists?

Which also returns false
If i try to access the button itself directly, this also returns false

b.element(:xpath => "//input [@name = 'FileUpload1']").exists?

Anyone have any ideas?

EDIT

The form is inside an iframe

<iframe id="Step1_Banner1_Popup_Photo_Photo_Iframe_PhotoUploader" class="photoUploaderFrame" scrolling="no" src="../MSReport3/UserControls/UploadPhoto.aspx?PhotoUploaderFor=1">
#document
 <!DOCTYPE html PUBLIC "-//W3C//DTD CHTML 1.0 .....">
  <html xmlns = "http://www.w3.org/1999/xhtml">
   <head>...</head>
   <body>
   <code from above goes here>
  • 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-16T04:02:08+00:00Added an answer on June 16, 2026 at 4:02 am

    NOTE: I’m posting the solution from the comments so that (hopefully) this question can be tagged as answered.

    The overlay is within a frame, and it’s necessary to specify the frame via method-chaining. For example:

    b.frame(:id => "Step1_Banner_Popup_Photo_Photo_Iframe_PhotoUploader").file_field.exists?
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When looking to get data from a web page whats the recommended method if
I am looking at a web-app, that has a set-up page(i.e, on the actual
i am looking for a method to extract text from web page (initially html)
I've made two versions of a script that submits a (https) web page form
I'm looking to embed some youtube videos in my web page and from looking
I have a web page that allows users to insert form input objects with
I'm looking at a web page where when I push the submit button on
I am looking to transfer commands/data from a web-page to an Arduino in order
I'm looking to create an MVC web page that displays the 12 months of
I'm looking for a sample web page (html code) with a link that will

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.