[wtr-general] watir-webdriver unable to detect firefox

2011-10-18 Thread tester
hi

i am using ruby 1.8.6
and gems
 watir (1.6.7, 1.5.6)
watir-webdriver (0.1.7)

and i tried to execute domo program
  require 'watir-webdriver'

  browser = Watir::Browser.new :firefox
  browser.goto http://google.com;
  browser.text_field(:name = 'q').set(WebDriver rocks!)
  browser.button(:name = 'btnG').click
  puts browser.url
  browser.close
getting an error

c:/Ruby1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- ffi (LoadError)
from c:/Ruby1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/Ruby1/lib/ruby/gems/1.8/gems/childprocess-0.1.4/lib/
childprocess/windows.rb:1
from c:/Ruby1/lib/ruby/gems/1.8/gems/childprocess-0.1.4/lib/
childprocess.rb:79:in `close_on_exec'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/firefox/socket_lock.rb:58:in `can_lock?'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/firefox/socket_lock.rb:43:in `lock'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/firefox/socket_lock.rb:29:in `locked'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/firefox/launcher.rb:32:in `launch'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/firefox/bridge.rb:21:in `initialize'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/common/driver.rb:38:in `new'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver/common/driver.rb:38:in `for'
from c:/Ruby1/lib/ruby/gems/1.8/gems/selenium-webdriver-0.1.1/lib/
selenium/webdriver.rb:51:in `for'
from c:/Ruby1/lib/ruby/gems/1.8/gems/watir-webdriver-0.1.7/lib/watir-
webdriver/browser.rb:34:in `initialize'
from test.rb:5:in `new'

any body know about this issue

please resolve

Thanks
Pavan

-- 
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: handling Javascript/CSS menus in watir

2010-04-30 Thread Tester
Thank you George.
onmouseover event is working for the www.cognizant.com. I am working
on a intranet site created in sharepoint. onmouseover event does not
work for the menus there. the particular menu gets highlighted without
displaying the submenu items. Do you have any idea how to deal with
it.

thanks
Joe

On Apr 29, 11:53 pm, George george.sand...@gmail.com wrote:
 This worked for me:

 # using an open browser pointed to
 #http://www.cognizant.com/html/home.asp

 browser = Watir::IE.attach(:title, /Cognizant/)
 browser.link(:id, 'industries').fire_event('onmouseover') # displays
 menu
 browser.link(:title, 'Banking  Financial Services').click

 On Apr 29, 5:10 am, Tester joeni...@gmail.com wrote:



  On Apr 29, 4:05 pm, Tester joeni...@gmail.com wrote: Hi

   I am trying to generate watir script for web application with CSS/
   Javascript menus. on giving show_links, showAllObjects drop down menu
   links does not get displayed. After i place the mouse of the menu if i
   give ie.show_links all links get displayed.
   I tried using fire_event - onmouseover,onmousedown,onmouseup yet
   unable to access the menu from the script.
   Can anybody please help me on the same

  source code of the page is given below. Plz help.

  !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  html xmlns=http://www.w3.org/1999/xhtml;
  headmeta http-equiv=Content-Type content=text/html;
  charset=iso-8859-1 /META NAME=ROBOTS

  CONTENT=NOHTMLINDEX/script type=text/javascript
  language=javascript

  src=/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D/
  script
  script type=text/javascript language=javascript src=/_layouts/
  1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D

  defer/script
  title
          ChannelOne :: Home
  /titlelink href=/inc/main.css rel=stylesheet type=text/css /

  link href=/inc/Ch1Team.css rel=stylesheet

  type=text/css /link rel=shortcut icon href=/images/favicon.ico
  type=image/x-icon /
  style type=text/css

  body {
          background-color: #CC;

  }

  /style
  script type=text/javascript src=/inc/stmenu.js/script
  script type=text/javascript src=../../inc/CH1.js/script

  script language=javascript type=text/javascript
  /script

  !--mstheme--link id=ctl00_onetidThemeCSS rel=stylesheet
  type=text/css href=../../_themes/simple/simp1011-28591.css

  /meta name=Microsoft Theme content=simple 1011, default //
  head

  body

  table border=0 cellpadding=0 cellspacing=0  height=128px;
  align=center 
                  tr bgcolor=black
                          td id=ch_logoimg src=/images/ch1logo_21.gif 
  //td
                          td align=right style= padding-right:10px
                                  table border=0 cellpadding=0 
  cellspacing=0
                                          tr
                                                  tdimg 
  src=/images/lft_curve.gif //td
                                                  td id=yellow_bg 
  class=tpt-menu

  script type=text/javascript
  var HomeUrl= /Pages/General/Ch1Home.aspx ;
  var TagUrl= /Pages/General/TagCloud.aspx ;
  var PAUrl= /Pages/PA/Prospectanalyzer.aspx ;
  var KYCUrl= /Pages/KYC/KYC.aspx ;
  var ForumsUrl= /Ch1Forums;
  var CIUrl= /Pages/CI/CI.aspx ;
  var CTubeUrl= https://ctube.cognizant.com;;
  var AlliancesUrl= /Pages/Alliances/Alliances.aspx ;
  var LinkUrl= /Pages/General/linktoall.aspx;
  var Ch1Url= /Pages/CH1Library/CH1Library.aspx ;
  var CVUrl= /Pages/CV/CV.aspx;
  var BBUrl= /Pages/BestBets/Contribute.aspx;
  var SWUrl= /Pages/General/SWLastFive.aspx;
  var FBUrl= /Lists/Channel1FeedBack/NewForm.aspx?Source=/Lists/
  Channel1FeedBack/summary.aspx;
  stm_bm([menu0f4d,850,,,0,,,0,0,250,0,1000,1,0,0,,540,
  0,0,1,2,default,hand,],this);
  stm_bp(p0,
  [0,4,0,0,0,7,5,0,100,,-2,,-2,50,0,0,#99,transparent,,
  3,1,1,#FCA518]);
  stm_ai(p0i0,[0,SEARCH,,,-1,-1,0,HomeUrl,_self,
  5,5,0,,,0,0,0,1,1,#F7,1,#99,1,,,3,1,0

  ,0,#F7,#00,#00,#00,8pt
  'Verdana','Arial','Helvetica','sans-serif;',bold 8pt

  'Verdana','Arial','Helvetica','sans-serif;',0,0],95,26);
  stm_aix(p0i1,p0i0,
  [0,EXPLORE,,,-1,-1,0,,_self,5,5,0,,,-1,-1],
  95,26);
  stm_bpx(p1,p0,
  [1,4,0,2,0,5,0,0,80,progid:DXImageTransform.Microsoft.RandomDissolve(,enab 
  led=0,Duration=0.30),
  12,progid

  :DXImageTransform.Microsoft.RandomDissolve(,enabled=0,Duration=0.30),
  12,80,0,0,#66,#00,]);
  stm_aix(p1i0,p0i0,[0,Search

  Tags,,,-1,-1,0,TagUrl,_self,0,0,0,,,
  0,0,0,1,1,#F9E0CA,1,#66,0,,,3,1,0,0,#FF,#FF

  ,#FF,#FF,8pt 'Verdana','Arial','Helvetica','sans-
  serif;',8pt

  'Verdana','Arial','Helvetica','sans-serif;'],70,26);
  stm_aix(p1i1,p1i0,[0,Prospect

  Analyzer,,,-1,-1,0,PAUrl,_self,0,0,0,,,
  0,0,0,1,1,#F9E0CA,1,#66,0,,,3,1,0,0,#FF,#FFF

  FFF,#FF,#FF,8pt 'Verdana','Arial','Helvetica','sans-
  serif;',8pt

  'Verdana','Arial','Helvetica','sans-serif;'],70,26

[wtr-general] handling Javascript/CSS menus in watir

2010-04-29 Thread Tester
Hi

I am trying to generate watir script for web application with CSS/
Javascript menus. on giving show_links, showAllObjects drop down menu
links does not get displayed. After i place the mouse of the menu if i
give ie.show_links all links get displayed.
I tried using fire_event - onmouseover,onmousedown,onmouseup yet
unable to access the menu from the script.
Can anybody please help me on the same

regards
Joe

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] need help on how to close the new windows

2009-12-30 Thread Tester
i am running a watir script on a url. The script opens pdf documents
in new windows. There are more that 100 pdf files on opening each in
new window the window hangs and I am not able to run the entire
script. Can some one help me out in this.
Is there a method such as ie.close to close the new browser window
getting opened from the main window in watir?

-- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] RubyGem version error | Builder error.

2008-10-27 Thread High Bits Perf Tester

When running through the tutorial Im getting this error:
C:/Apps/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
`report_activate_error': RubyGem version error: hoe(1.7.0 not =
1.8.1) (Gem::LoadError)

I saw an eariler post say that this was needed to be done:
just needed to do: gem install builder

When I try installing the gem I get the following error And I still
get the error above.
(Any idea's?)

C:\Apps\Rubygem install builder
Successfully installed builder-2.1.2
1 gem installed
Installing ri documentation for builder-2.1.2...
ERROR:  While generating documentation for builder-
... MESSAGE:   Unhandled special: Special: type=17,
... RDOC args: --ri --op C:/Apps/Ruby/lib/ruby/gems
itle Builder -- Easy XML Building --main README --l
ES Rakefile README doc/releases/builder-1.2.4.rdoc
oc doc/releases/builder-2.1.1.rdoc
(continuing with the rest of the installation)
Installing RDoc documentation for builder-2.1.2...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---