[wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2011-08-31 Thread Amit Bobade
Hi, I am getting following error while running my script on FF. `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError) I am using Ruby187 and Watir-webdriver. Could someone tell me why this error is occuring?

Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2011-08-31 Thread Michael
Your HTML and code snippets would help us see what is going on. In general you cannot interact with elements that are hidden (not visible). This may be occurring for a few reasons: - element is hidden (or positioned off the screen) by CSS styles or JavaScript - your selector found a different

Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2011-08-31 Thread Amit Bobade
Thanks for your prompt reply, Micheal. Element is not hidden. It is very simple HTML code. I tried using sleep( ) method for this and fortunately it worked I don't know the exact problem and this may not be a proper solution. Could you please suggest something more productive? HTML CODE:

Re: [wtr-general] Re: Getting errro in Chrome. Please suggest answer.

2011-08-31 Thread Amit Bobade
Hi, I downloaded the chrome drivers and added path as follows: profile = Selenium::WebDriver::Chrome::Profile.new profile['download.prompt_for_download'] = false profile['download.default_directory'] = C:\\xampp\\htdocs\\Ruby187\\bin browser = Watir::Browser.new :chrome,

[wtr-general] Access denied when running execScript

2011-08-31 Thread Idan Miller
Hello! I'm trying to run execScript from watir 1.9.5 on Internet Explorer 6... it works, but in a certain environemnt I get a Access Denied error from the object, error code 0x80070005... any idea what is wrong? I checked the security settings of IE and they all seem good... Do you think

[wtr-general] Frames issue in Watir2.0.1?

2011-08-31 Thread GJHmf
Hi all, I posted a few threads the other day, one of which detailed my difficulty using set_no_wait on a validated text field; and was asked by Jarmo Pertman whether it was in a frame. It is, and this concerns me a little; as sadly the site I'm testing is heavily frame-centric, with no immediate

[wtr-general] Re: Re : Re: Re : Re: Re : Re: Re : Re: Re : Watir is slow with nested frames

2011-08-31 Thread Jarmo Pertman
On Aug 29, 6:47 pm, JMI jurek.michal...@bluewin.ch wrote: Anyway, i looked at the code and saw that everything that can be done is already done. I am not so pessimistic. Thanks for not being! Your letter made me to look into it once again and this time i paid more attention to code

[wtr-general] Re: Waiting for a user response

2011-08-31 Thread Jarmo Pertman
Well, just do something like this: # do something # let's wait maximum of 10 minutes wait_until(10*60) {browser.url =~ /part_of_new_expected_url/} # do something else when the new url is set Jarmo On Aug 31, 1:33 am, byung jinuacad...@gmail.com wrote: I put below code.. def

[wtr-general] TableRow#text returns text of the wrong row

2011-08-31 Thread brettsykes
Ruby Version: 1.8.7 WATIR Version: 2.0.1 OS: Win 7 So I came across this issue as I just upgraded to 2.0.1. Basically, when i get a TableRow object using the [] method, and then try to get the text value from it, it always returns the text of the row with index of zero. Steps to reproduce: 1)

Re: [wtr-general] TableRow#text returns text of the wrong row

2011-08-31 Thread Michael
That bug is captured in: http://jira.openqa.org/browse/WTR-486 And fixed in commit: https://github.com/bret/watir/commit/3846b6f300f5210df6b196eeeb15684b6e25378b You should see it in the next patch release. There is another discussion post about it titled watir 2.0.1 table rows method broken

Re: [wtr-general] Getting Error: `WebDriverError': Element is not currently visible and so may not be interacted with (Selenium::WebDriver::Error::ElementNotDisplayedError)

2011-08-31 Thread Michael
Please post your ruby code as well so we can see how you are trying to locate this element. You can always use wait_until { … locate link … }, but if this is truly static HTML I would be surprised if that was necessary. On 2011-08-31, at 12:32 AM, Amit Bobade wrote: Thanks for your prompt