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:

<div class="attch-img">
    <a href="javascript:void(0);" class="attach_link dashboard_sprites
OFF" id="showlink" title="Link"></a>
 </div>
 <div class="attch-img">

     <a href="javascript:void(0);" style="opacity: 0.5;" class="OFF
attach_video dashboard_sprites" title="Configure Youtube to upload
video"></a>
 </div>


Thanks,
-Amit

On Wed, Aug 31, 2011 at 11:51 AM, Michael <[email protected]> wrote:

> 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 element matching your selector, and this
> element is hidden
>
> On 2011-08-31, at 12:06 AM, Amit Bobade wrote:
>
> 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?
>
> --
> Thanks and Regards,
> Amit
>
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>



-- 
Thanks and Regards,
Amit

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to