Thanks for your suggestion. 

When I tried the below code I’m getting the error “LoadError: cannot load 
such file -- ffi_c”. 

My code

require 'watir-webdriver'

browser = Watir::Browser.new :IE

browser.goto "myurl"

browser.text_field(:name => 'USER').set("myuser")

browser.text_field(:name => 'PASS').set("mypass")

browser.image(:src => 'login.gif').click

browser.window(:title => "test").use do

  browser.text_field(:name => 'func').set("myfunc")

  browser.image(:id => 'Enter').click

end

 

Ruby version which I’m using 

ruby 2.0.0p0 (2013-02-24) [i386-mingw32]

 

my gem list

 

*** LOCAL GEMS ***

 

bigdecimal (1.2.0)

builder (3.2.0)

childprocess (0.3.9)

commonwatir (4.0.0)

ffi (1.4.0 x86-mingw32)

hoe (3.5.1)

io-console (0.4.2)

json (1.7.7)

mini_magick (3.2.1)

minitest (4.3.2)

multi_json (1.6.1)

nokogiri (1.5.6 x86-mingw32)

psych (2.0.0)

rake (0.9.6)

rautomation (0.7.3)

rdoc (4.0.0)

rubygems-update (2.0.2)

rubyzip (0.9.9)

s4t-utils (1.0.4)

selenium-webdriver (2.31.0)

subexec (0.0.4)

test-unit (2.0.0.0)

user-choices (1.1.6.1)

watir (4.0.2)

watir-classic (3.4.0)

watir-webdriver (0.6.2)

websocket (1.0.7)

win32-api (1.4.8 x86-mingw32)

win32-process (0.7.1)

win32screenshot (1.0.7)

windows-api (0.4.2)

windows-pr (1.2.2)

xml-simple (1.1.2) 

Please help me to resolve this one.

On Saturday, March 9, 2013 12:24:29 AM UTC+9, Željko Filipin wrote:
>
> On Fri, Mar 8, 2013 at 4:14 PM, Vimal Raju <[email protected]<javascript:>
> > wrote:
>
>> Can anyone help me to provide code snippet for the below spec
>> 1. Separate window for login
>> 2. After successful login, login window will be closed and new window 
>> like pop-up window which has dynamic URL is opened.
>> 3. After opening the new window, I need to drive that window using watir
>>
>
> This could help:
>
> http://watirwebdriver.com/browser-popups/
>
> Željko
> --
> https://leanpub.com/watirbook 
>

-- 
-- 
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]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to