Re: [wtr-general] Error in installation of gem

2009-12-29 Thread lu.hr2009 lu.hr2009
hi I am trying to install watir in my PC. while I am running the command gem update --system or gem install watir It always throws following error ERROR: While executing gem ... (OptionParser::AmbiguousOption) ambiguous option: -system because my company hava domain manager. how to resolve

Re: [wtr-general] XPath and IE

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote: //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/.. I know this does not solve your problem, but do you really need to use such

Re: [wtr-general] XPath and IE

2009-12-29 Thread Angrez Singh
Can you post the HTML? Why are you using XPath for accessing elements? - Angrez On Tue, Dec 29, 2009 at 3:28 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote:

[wtr-general] safariwatri - get elements by xpath

2009-12-29 Thread Hans Dushanthakumar
Hi, Not sure if this is the right group for safari-watir questions, but here goes: I'm trying to get a few tests built using watir (and cucumber/rspec) to run across firefox safari. Noticed that the elements_by_xpath function that watir provides isnt available in safariwatir. eg:

Re: [wtr-general] safariwatri - get elements by xpath

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 1:33 PM, Hans Dushanthakumar hansrd...@yahoo.com wrote: browserObj.elements_by_xpath(.//*...@id='bookEntry']/div) If I understood your xpath, you are trying to access a div that is a child of an element that as an id. Something like this should work: browser.div(:id,

Re: [wtr-general] XPath and IE

2009-12-29 Thread Angrez Singh
Let me guess here you are trying to delete the project you don't have ID for delete button as the number of projects are not fixed. Is that correct? If yes, then does project name is unique across the applications? - Angrez On Tue, Dec 29, 2009 at 6:20 PM, Josh Moore joshsmo...@gmail.com wrote:

Re: [wtr-general] XPath and IE

2009-12-29 Thread Željko Filipin
On Tue, Dec 29, 2009 at 10:55 AM, Josh Moore joshsmo...@gmail.com wrote: //*[local-name()=tr]/*[local-name()=td][text()=test_project]/../*[local-name()=td]/*[local-name()=a]/*[local-name()=img]...@title=Remove]/.. Does this work (not tested)? browser.image(:title = Remove, :after? =

[wtr-general] IE 8 Crashes

2009-12-29 Thread Jeff Savin
Hi, I have a simple automation application built in Ruby 1.8.6 and Watir 1.6.5. The application takes control of the browser and goes through 3 or 4 pages of an online website. It fills in a couple forms and pushes a few buttons, nothing fancy. This application works as tested on several

Re: [wtr-general] Difficulty installing Watir (needs make); slow performance with FireWatir

2009-12-29 Thread Charley Baker
Hi Jesse, On Wed, Dec 23, 2009 at 6:42 PM, Jesse jedelst...@ucmerced.edu wrote: Hello! I'm using Ruby and Watir to automatically look up some data about court decisions from an online database. The site doesn't play nice with the common solutions for non-interactively accessing sites (like

[wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-29 Thread George
Hello, What does your code look like? On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote: Hi Has anyone here answer for this please. Regards Pallavi. -- Forwarded message -- From: Pallavi Sharma write2pall...@gmail.com Date: Tue, Dec 22, 2009 at 10:23

Re: [wtr-general] XPath and IE

2009-12-29 Thread Josh Moore
Hi, I was able to figure out another solution by using the table object and iterating over it. However, if you have any ideas on the XPath I would still be interested in hearing about them. Thanks, Josh On Dec 29, 2009, at 6:33 PM, Angrez Singh wrote: Can you post the HTML? Why are you

[wtr-general] Re: IE 8 Crashes

2009-12-29 Thread Tiffany Fodor
Hi Jeff! I haven't heard of this problem. Can you provide any errors you're getting when the browser crashes? Have you verified that you can manually access the URL in an IE8 browser on this system? If so, have you tried stepping through opening a new browser and then going to the site through

[wtr-general] Re: unexpected popup window which has no title ::: need help

2009-12-29 Thread Tiffany Fodor
Thanks for providing the solution that worked for you. It may help someone else with the same problem. -Tiffany On Dec 28, 2:17 am, Pallavi Sharma write2pall...@gmail.com wrote: Chetan If its an unexpected window with no title and you just wish to detect and close it, then Auto IT script

Re: [wtr-general] Error in installation of gem

2009-12-29 Thread lu.hr2009 lu.hr2009
thread name can i have it ,thank you. watir-1.5.4.gem have downloaded,it can help me ? 2009/12/29 Wesley Chen cjq@gmail.com It is a different topic, please open a new thread. Please see the doc: http://wiki.openqa.org/display/WTR/Installation And then try again. Thanks. Wesley Chen.

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-29 Thread Pallavi Sharma
Hi My code looks like this: Say the input is: h1 hello br bye br /h1 Now if you do from watir saying puts ie.text it will print hello bye so text is seperated by new line but with firewatir ff.text output is: hello bye separated by space. So thats my problem. As the delimiter used by

Re: [wtr-general] Difficulty installing Watir (needs make); slow performance with FireWatir

2009-12-29 Thread Angrez Singh
I have heard a lot about Firewatir slowing up entering the text in textbox control. While running unit test cases i was not able to reproduce it. May be if you can send a working code which I can run on my machine, I'll look into what is causing the problem. Thanks, Angrez On Tue, Dec 29, 2009

Re: [wtr-general] Error in installation of gem

2009-12-29 Thread Wesley Chen
Watir latest version is 1.6.5. Please don't use Watir1.5.4. Thanks. Wesley Chen. For life, the easier, the better. 2009/12/30 lu.hr2009 lu.hr2009 lu.hr2...@gmail.com thread name can i have it ,thank you. watir-1.5.4.gem have downloaded,it can help me ? 2009/12/29 Wesley Chen