Re: [wtr-general] Error displayed in accessing open office spread sheet

2010-03-11 Thread Mrunal
Hi Ayyappa, Please try this code. require 'win32ole' require 'rubygems' def make_property_value(name,value) service_manager = WIN32OLE.new("com.sun.star.ServiceManager") struct = service_manager.Bridge_GetStruct("com.sun.star.beans.PropertyValue") struct.Name = name

Re: [wtr-general] Same word different places on the page.

2010-03-11 Thread Mrunal
Hi Shlomit, href property might be different.Try using href property. Reagrds, Mrunal Shlomit Gazit wrote: I need to look for the word 'Share' in related to different texts in different places in the page, but the link has the same properties. How can I distinguish. Any ideas? -- Befo

Re: [wtr-general] how to execute javascript in safariwatir

2010-03-11 Thread Yuping Zhong
Hi, Right now,the Safariwatir is not perfect yet,some codes that can run in IE don't work in Mac. If your code cannot be executed in Safariwatir,I recommend you feedback this to the developer. Thanks! -Zhong On Fri, Mar 12, 2010 at 1:52 AM, JonathanKohl wrote: > I use this with IE, and I was w

[wtr-general] Re: Same word different places on the page.

2010-03-11 Thread orde
Something like this should work: browser.link(:index=>0, :text=>"Share").click Watir uses zero-based indexing (although I think firewatir is different). So, the example above would click on the first link where the text is "Share". Hope it helps. On Mar 11, 3:09 pm, Shlomit Gazit wrote: > I n

[wtr-general] Same word different places on the page.

2010-03-11 Thread Shlomit Gazit
I need to look for the word 'Share' in related to different texts in different places in the page, but the link has the same properties. How can I distinguish. Any ideas? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message

[wtr-general] ruby.exe processes

2010-03-11 Thread Shlomit Gazit
I have lots of ruby.exe processes running after running watir test on CI server. Why there creating and how should I kill them after the test is finished? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are

[wtr-general] how to execute javascript in safariwatir

2010-03-11 Thread JonathanKohl
I use this with IE, and I was wondering if there is an equivalent in SafariWatir: browser.ie.Document.parentWindow.execScript("sendCommand('#{command}', '#{msg}');") Thanks, -Jonathan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You recei

Re: [wtr-general] Error displayed in accessing open office spread sheet

2010-03-11 Thread Felipe Knorr Kuhn
Use the roo or odf libraries to handle Open Office files. http://roo.rubyforge.org/ http://rubyforge.org/projects/rubyodf/ On Thu, Mar 11, 2010 at 10:23 AM, ayyappa wrote: > I am trying to access the open office spreadsheet, using below script > but following error is displayed.kindly can any o

Re: [wtr-general] Error displayed in accessing open office spread sheet

2010-03-11 Thread Ethan
This group is for the Watir library. We do not support WIN32OLE or accessing open office through WIN32OLE. On Thu, Mar 11, 2010 at 08:23, ayyappa wrote: > I am trying to access the open office spreadsheet, using below script > but following error is displayed.kindly can any one help me to over

[wtr-general] Error displayed in accessing open office spread sheet

2010-03-11 Thread ayyappa
I am trying to access the open office spreadsheet, using below script but following error is displayed.kindly can any one help me to over come. Thanks in advance require 'win32ole' require 'rubygems' noArgs = [] file_uri = "file:///D:/ruby/example.ods" serviceManager = WIN32OLE.new("com.sun.star

Re: [wtr-general] Watij on Watir Podcast

2010-03-11 Thread karim rayani
Hello, One thing that could be addressed was how to use Watij library with JRuby. right now with Watir, since it is running on a C port, the chance of platform change/OS change can cause the script to break at times or installation problems. Watij as it a Java Port, i guess it would give a certain

[wtr-general] How to access browser objects in Watir ?

2010-03-11 Thread hunzai
Hi, I want to access browser objects, like navigator.appName. Is there a way to do it using a single method that works on all browsers ? Thanks, -- Before posting, please read http://watir.com/support. To sum it up: search before you ask, be nice. You received this message because you are su

[wtr-general] Watij on Watir Podcast

2010-03-11 Thread Željko Filipin
Hi, I am recording a podcast with Jake Dempsey on Watij (watij.com) this Friday. If you have a question or six for Jake, ask. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all o

[wtr-general] Frame problem

2010-03-11 Thread Damien
Hi everybody, I try to test a web application which use many frames. I successfuly automate some task in the first frame but I can't access to some image buttons. show_all_objects method doesn't report all objects (?). I search the "resourcePoolAUTOCOMP" element. Here is the element HTML code ex

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Željko Filipin
On Thu, Mar 11, 2010 at 10:20 AM, Wesley Chen wrote: > In fact, it can open the IE window, but it can't access the text field. I had the same problem when I tried it a while ago. Jari reported the bug. Željko -- You received this message because you are subscribed to the Google Groups "Watir

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
Thank you, Zeljko, When I use Watir::IE.new/start to create new IE process, anything goes expected. Wesley. For life, the easier, the better. On Thu, Mar 11, 2010 at 5:20 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Thu, Mar 11, 2010 at 10:17 AM, Wesley Chen wrote: > > I get

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Željko Filipin
On Thu, Mar 11, 2010 at 10:17 AM, Wesley Chen wrote: > I get error message: > d:/ruby/lib/ruby/gems/1.8/gems/watir-webdriver-0.0.1.dev5/lib/watir-webdriver/base_element.rb:324:in `assert_writable': Watir::Exception::ObjectReadOnlyException (Watir::Exception::ObjectReadOnlyException) > When I chang

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
In fact, it can open the IE window, but it can't access the text field. Wesley. For life, the easier, the better. On Thu, Mar 11, 2010 at 5:17 PM, Wesley Chen wrote: > Hi, Zeljko, > When I install > gem install selenium-webdriver > gem install watir-webdriver --pre > I run the code below:

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
Hi, Zeljko, When I install gem install selenium-webdriver gem install watir-webdriver --pre I run the code below: *require "watir-webdriver"* *browser = Watir::Browser.new(:internet_explorer)* *browser.goto("www.google.com")* *browser.text_field(:name, "q").set("Hello world")* *browser.button(:inde

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Željko Filipin
On Wed, Mar 10, 2010 at 11:59 AM, Mrunal wrote: > I want to test the web applications with google chrome. I am not sure ChromeWatir is in active development any more. Try watir-webdriver, it can drive Chrome: http://zeljkofilipin.com/2010/01/12/watir-on-webdriver/ Željko -- watir.com - communi

Re: [wtr-general] Gmail compose automation

2010-03-11 Thread Željko Filipin
On Wed, Mar 10, 2010 at 12:21 PM, Dilip M wrote: > I am automating gmail Why? I am not kidding. Really, why? If you are just playing with Watir, Gmail is hard to automate. You can switch to basic HTML view and it should be trivial then. Željko -- watir.com - community manager pledgie.com/campai

Re: [wtr-general] Query regarding chromewatir

2010-03-11 Thread Wesley Chen
I use the latest version of chromewatir, I have also met a problem. When I run the code below: *require "chrome_watir"** **$browser = ChromeWatir::Browser.new* *$browser.goto("**www.google.com* *")* *$browser.text_field(:name, "q").set "hello world"* *$browser.button(:index