[wtr-general] Re: Accessing file_field under div style

2011-02-14 Thread Dan Claudiu Pop
Unfortunately, i was not able to dig this out. I used also xpath with
no success.
In the end i opt out to use AutoIT.

Thank you for your support,
Dan

On Feb 13, 6:35 pm, Jari Bakken jari.bak...@gmail.com wrote:
 On Mon, Feb 14, 2011 at 12:00 AM, Dave McNulla mcnu...@gmail.com wrote:
  I had to set up watir-webdriver to test this out. Seems that it doesn't work
  on IE for me at all (doesn't run), but who's got time to debug that. On
  Chrome, the field is never found. It works with Watir (I only tried with
  IE). I'd heard that watir-webdriver didn't support popups (required for
  setting a file_field), but never investigated that.

 Dave: watir-webdriver is passing the file fields specs on both Firefox
 and IE. If you can't make it work, please file bugs. For Chrome, it's
 a known limitation - file fields are not supported by the current
 Chrome driver.

 Dan: How are the elements styled? You should only see that exception
 if the element isn't visible to the user, in which case you would have
 a hard time testing it manually as well. As a worst case solution, you
 can modify the style using Browser#execute_script to make it
 accessible.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Accessing file_field under div style

2011-02-14 Thread Dave McNulla
Jari,

I don't think it's a bug, probably something to do with versions/my set-up, 
or maybe my security settings for Vista. I will look into it soon and submit 
a bug if I can't get it to work.

Thanks

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Accessing file_field under div style

2011-02-13 Thread Dave McNulla
I had to set up watir-webdriver to test this out. Seems that it doesn't work 
on IE for me at all (doesn't run), but who's got time to debug that. On 
Chrome, the field is never found. It works with Watir (I only tried with 
IE). I'd heard that watir-webdriver didn't support popups (required for 
setting a file_field), but never investigated that.

Good luck,

Dave

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Accessing file_field under div style

2011-02-13 Thread Jari Bakken
On Mon, Feb 14, 2011 at 12:00 AM, Dave McNulla mcnu...@gmail.com wrote:
 I had to set up watir-webdriver to test this out. Seems that it doesn't work
 on IE for me at all (doesn't run), but who's got time to debug that. On
 Chrome, the field is never found. It works with Watir (I only tried with
 IE). I'd heard that watir-webdriver didn't support popups (required for
 setting a file_field), but never investigated that.

Dave: watir-webdriver is passing the file fields specs on both Firefox
and IE. If you can't make it work, please file bugs. For Chrome, it's
a known limitation - file fields are not supported by the current
Chrome driver.

Dan: How are the elements styled? You should only see that exception
if the element isn't visible to the user, in which case you would have
a hard time testing it manually as well. As a worst case solution, you
can modify the style using Browser#execute_script to make it
accessible.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Accessing file_field under div style

2011-02-11 Thread Dan Claudiu Pop
Hello,

Thanks for replies.

The error message that i receive is the following, i apologize fot not 
mention it:

Selenium::WebDriver::Error::ElementNotDisplayedError: Element is not 
currently visible and so may not be interacted with

I've tried @browser.file_field(:name = 
top_image).when_present.set(C:\\image.PNG) with no luck, after the 30 
sec default time just passes to the next step.

I'm using watir webdriver v.0.2.0dev2 with cucumber and rubymine as ide. I 
update to the latest version of webdriver so that i will able to use the 
send_keys method because i need to handle tinyMCE.
Ruby 1.8.7

Here is more detailed view of the source. I'm pretty sure is because of the 
div style. The idea is that i have a lot of upload buttons and i would 
really like to access them without asking the dev to remove the style for 
the specified buttons from dev site.

https://lh6.googleusercontent.com/_omaRUOygWDA/TVWZouBu0tI/AB8/8JTghBxfWas/Capture2.PNG

Thanks,
Dan

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com