[wtr-general] Re: regarding watir and there use

2010-08-15 Thread Pallavi Sharma
Adding watir group so that everyone can benefit in here Sudhir.

Yes should be feasible, can we have a look at your website if its available
publicly, or can you send us the html of the page.

Is there any frames on your website, what error do you get when you try
selecting the element in your select box?

It could be possible that there is some javascript even which is not getting
called...

Time can be captured easily by using ruby Time gem and using is function...


Hope this helps, the more information you provide in here, the better help
you may get.


Regards
Pallavi.

On Sun, Aug 15, 2010 at 1:30 PM, sudhir kumar prem...@gmail.com wrote:


 Hi Pallavi,

 I am trying to automate monitoring process of one of the website.
 My req.. is
 Open the website(using login and Pwd).
 Select the Bu from DropBox.
 Select report type from DropBox.
 Select report as Button
 Run it and capture the timing and error if any.

 I am stuck at Select the Bu from DropBox.
 Is it possible to do it using watir and Ruby.
 Let me know If you require more details.



 Thanks lot for your help.

 Sudhir kumar





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


Re: [wtr-general] Where does watir stores object properties

2010-08-15 Thread Amit
Does firewatir saves things in broswer_var ?? Can't we use multiple objects
so we don't lose refrence of previous window?



2010/8/12 Ethan notet...@gmail.com

 Firewatir saves things in javascript variables, and reuses the same
 variables, so when you attach to a new window, it reuses the same variables
 as it does for the old window and you lose references to that window.

 On Thu, Aug 12, 2010 at 10:36, Amit amit.e...@gmail.com wrote:

 Hi Željko,

 Actually, i was checking behavior of attach function in firewatir.
 Currently, In firewatir, if we attach 2 windows then it loose control
 over first one.

 So, thats why i wanted to know wether it saves object properties or
 not... and if yes then where..

 Thank You
 Amit

 On 8/12/10, Željko Filipin zeljko.fili...@wa-research.ch wrote:
  On Thu, Aug 12, 2010 at 2:42 PM, Amit amit.e...@gmail.com wrote:
  I want to know where WATIR is storing this information so it can access
  objects for both window.
 
  Why do you need that information?
 
  To be precise, Watir is not storing it, but Ruby is (as far as I
 understand
  it).
 
  The most general answer would be in RAM. :)
 
  Željko
  --
  watir.com - community manager
  watirpodcast.com - host
  testingpodcast.com - audio podcasts on software testing. all of them
  vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi
 
  --
  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.comwatir-general%2bunsubscr...@googlegroups.com
 

 --
 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.comwatir-general%2bunsubscr...@googlegroups.com


  --
 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.comwatir-general%2bunsubscr...@googlegroups.com


-- 
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] unable to find element using xpath

2010-08-15 Thread goutham
hai all,

i am using element_by_xpath to find an element in watir but browser is
closing when i come to xpath step. does we need to install anything to
find element using xpath . waiting for ur suggestions

Thankyou,
Goutham

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


Re: [wtr-general] unable to find element using xpath

2010-08-15 Thread Basim Baassiri
Hi Goutham
You'll need to post some code and some html to illustrate better your
problem


On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.com wrote:

 hai all,

 i am using element_by_xpath to find an element in watir but browser is
 closing when i come to xpath step. does we need to install anything to
 find element using xpath . waiting for ur suggestions

 Thankyou,
 Goutham

 --
 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.comwatir-general%2bunsubscr...@googlegroups.com


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


Re: [wtr-general] Re: Differences between Watir, FireWatir, Webdriver ?

2010-08-15 Thread Jari Bakken
On Sat, Aug 14, 2010 at 5:33 PM, Chan Nguyen atbl1...@gmail.com wrote:
 1) var/lib/gems/1.8/gems/watir-webdriver-0.0.6/lib/watir-webdriver/
 base_element.rb:186:in `text': undefined method `text' for
 #Selenium::WebDriver::Driver:0x..fb746f854 browser=:firefox
 (NoMethodError)

This is a known issue in watir-webdriver (we have a failing spec for
it). You can track this issue to follow its progress:

http://github.com/jarib/watir-webdriver/issues/issue/17

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


Re: [wtr-general] unable to find element using xpath

2010-08-15 Thread goutham mandadi
hai basim,

below is the code
map name=nav

area href=http://www.snapfish.com/snapfish/selectalbumreprints/
view-source:http://www.snapfish.com/snapfish/selectalbumreprints/
title= Order prints  coords=9,53,113,72
area href=javascript:showShare() title= Share  coords=131,52,187,71
/map
how can we identify these elements by using xpath


On Mon, Aug 16, 2010 at 12:20 AM, Basim Baassiri ba...@baassiri.ca wrote:

 Hi Goutham
 You'll need to post some code and some html to illustrate better your
 problem


 On Sun, Aug 15, 2010 at 11:22 AM, goutham goutham.mand...@gmail.comwrote:

 hai all,

 i am using element_by_xpath to find an element in watir but browser is
 closing when i come to xpath step. does we need to install anything to
 find element using xpath . waiting for ur suggestions

 Thankyou,
 Goutham

 --
 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.comwatir-general%2bunsubscr...@googlegroups.com


  --
 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.comwatir-general%2bunsubscr...@googlegroups.com


-- 
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] Re: How to select a item from the dropbox

2010-08-15 Thread sudhir
Pallavi,
The select list for ABPorts is given below:
select name=level0 width=300
onchange=javascript:selectcombo_Report('0','ReportTemplate_Buselect',this.form)
class=select-menutoption value=-1 selected=selected- Select
One -/option
option value=DEMO-00908ABC Company/option
option value=00901ABPorts/option
option value=05245Washington State Investment Board/option
option value=00990Wellcome Trust/option

Thanks for your help

On Aug 14, 4:19 pm, Pallavi Sharma write2pall...@gmail.com wrote:
 Sudhir

 For ABPorts, give the complete select list html code, for the other one:

 select name=selectedReportDetailsString size=1
 onchange=javascript:submitReportTypes('
 %=WebOperation.REPORTTEMPLATE_REPORT_SELECT%'); class=select-
 menu180option value=- Select One -##-1## ## || || || 
 selected=selected- Select One -/option
 option value=Performance by Dimension##1## ## || ##RPTTYP##PERF|| ||
 Performance by Dimension/option
 option value=Historical Summary##2## ## || ##RPTTYP##PERF|| ||
 Historical Summary/option
 option value=Index Performance##3## ## || ##RPTTYP##PERF|| ||
 Index Performance/option
 option value=Security Performance##4## ## || ##RPTTYP##PERF|| ||
 Security Performance/option/select

 browser.select_list(:name,'selectedReportDetailsString').select(Security
 Performance##4## ## || ##RPTTYP##PERF|| ||) to select this element in the
 list.

 I hope this helps, if it doesn't let us know, whether the page on which you
 are working is available publicly or no...

 Regards
 Pallavi.

 2010/8/14 sudhir prem...@gmail.com

  Hi All,
  Here is another select list from which I have to select Performance
  by Dimension Can you Guide about it.

  select name=selectedReportDetailsString size=1
  onchange=javascript:submitReportTypes('
  %=WebOperation.REPORTTEMPLATE_REPORT_SELECT%'); class=select-
  menu180option value=- Select One -##-1## ## || || || 
  selected=selected- Select One -/option
  option value=Performance by Dimension##1## ## || ##RPTTYP##PERF|| ||
  Performance by Dimension/option
  option value=Historical Summary##2## ## || ##RPTTYP##PERF|| ||
  Historical Summary/option
  option value=Index Performance##3## ## || ##RPTTYP##PERF|| ||
  Index Performance/option
  option value=Security Performance##4## ## || ##RPTTYP##PERF|| ||
  Security Performance/option/select

  Thanks A Lot for your help

  On Aug 14, 9:38 am, sudhir prem...@gmail.com wrote:

  onchange=javascript:selectcombo_Report('0','ReportTemplate_Buselect',this.form)
   class=select-menutoption value=-1 selected=selected- Select
   One -/option
   option value=DEMO-00908ABC Company/option
   option value=DEMO-UK016ABC-GBP/option
   option value=00901ABPorts/option
   option value=ABSCOMBINEDABS Combined/option

   I want to select from the drop box like ABPorts. can you please Guide
   Thanks Lot for your help

   On Aug 9, 10:06 pm, Chuck van der Linden sqa...@gmail.com wrote:

If the below does not work, then use the IE Developer Toolbar, or
Firebug, to have a look at the element to see if it is really an HTML
select list, or if it is some other kind of control.

There are often Javascript powered 'section lists' which are enabled
using other types of objects (often an ordered list) and a lot of
javascript eventing.   In that case you typically have to use click
methods on the elements the control is created from, or sometimes fire
specfic events like 'onmouseover' followed by clicks, in order to
activate the control.

There are several existing threads on dealing with those kind of
controls, which would bear searching for and reading if you find
yourself in that situation

On Aug 9, 1:45 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:

 On Sun, Aug 8, 2010 at 5:15 PM, sudhir prem...@gmail.com wrote:
  I am trying to select an item from dropbox but could not.

 Take a look:

http://wiki.openqa.org/display/WTR/Selection+Boxes

 Željko
 --
 watir.com - community manager
 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them
 vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

  --
  Before posting, please readhttp://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.comwatir-general%2bunsubscr...@googlegroups.com

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


Re: [wtr-general] Firewatir attach method doesn't work properly

2010-08-15 Thread Ethan
Vapir is currently broken on 3.0.*. A fix is coming, but I have a number of
other higher-priority issues to fix first. You can upgrade to 3.5 or 3.6, or
wait until I can get 3.0 support working.

On Thu, Aug 12, 2010 at 11:50, Amit amit.e...@gmail.com wrote:

 its 3.06


 On Thu, Aug 12, 2010 at 8:56 PM, Ethan notet...@gmail.com wrote:

 What version of firefox are you using?


 On Thu, Aug 12, 2010 at 06:17, Amit amit.e...@gmail.com wrote:

 Hi Ethan,

 I tried below code:

 require 'watir-vapir'

 ff = Vapir::Firefox.new
 ff.start(www.google.com)



 After executing above code, A new instance of firefox opened and got
 following error. Could you please tell me why i'm getting this error?

 C:/Ruby/lib/ruby/gems/1.8/gems/vapir-firefox-1.7.0/lib/vapir-firefox/jssh_socket.rb:118:in
 `initialize': Something went wrong loading Prototype - message SyntaxError:
 unterminated comment\n SyntaxError: return not in function\n TypeError:
 this.getUTCMonth is not a function\n SyntaxError: syntax error\n
 SyntaxError: return not in function\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n SyntaxError: syntax error\n \n
 SyntaxError: syntax error\n \n SyntaxError: syntax error\n \n function
 () {\nif (!this.currentlyExecuting) {\ntry {\n
 this.currentlyExecuting = true;\nthis.execute();\n}
 catch (e) {\n} finally {\nthis.currentlyExecuting =
 false;\n}\n}\n}\n SyntaxError: syntax error\n SyntaxError:
 syntax error\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n SyntaxError: unterminated
 comment\n ReferenceError: document is not defined\n TypeError:
 this.replace is not a function\n SyntaxError: return not in function\n
 SyntaxError: invalid label\n SyntaxError: missing ; before statement\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n SyntaxError: unterminated comment\n
 SyntaxError: return not in function\n SyntaxError: syntax error\n \n \n
 \n \n \n ReferenceError: reference to undefined XML name *::*\n \n \n
 \n \n \n \n \n \n \n \n \n SyntaxError: return not in function\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 \n SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 \n \n \n \n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: syntax error\n SyntaxError:
 syntax error\n SyntaxError: return not in function\n SyntaxError: syntax
 error\n SyntaxError: return not in function\n SyntaxError: syntax error\n
 SyntaxError: syntax error\n \n function (object) {\nif (object 
 Object.isFunction(object.toTemplateReplacements)) {\nobject =
 object.toTemplateReplacements();\n}\nreturn
 this.template.gsub(this.pattern, function (match) {if (object == null)
 {return match[1] + \\;}var before = match[1] || \\;if (before ==
 \\) {return match[2];}var ctx = object, expr = match[3];var pattern =
 /^([^.[]+|\\[((?:.*?[^])?)\\])(\\.|\\[|$)/;match = pattern.exec(expr);if
 (match == null) {return before;}while (match != null) {var comp =
 match[1].startsWith(\[\) ? match[2].gsub(\]\, \]\) :
 match[1];ctx = ctx[comp];if (null == ctx || \\ == match[3]) {break;}expr =
 expr.substring(\[\ == match[3] ? match[1].length : match[0].length);match
 = pattern.exec(expr);}return before + String.interpret(ctx);});\n}\n
 SyntaxError: syntax error\n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n SyntaxError: return not
 in function\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: invalid label\n SyntaxError: invalid label\n
 SyntaxError: invalid label\n SyntaxError: invalid label\n SyntaxError:
 invalid label\n SyntaxError: syntax error\n SyntaxError: syntax error\n
 SyntaxError: return not in function\n SyntaxError: return not in
 function\n ReferenceError: iterable is not defined\n \n SyntaxError:
 return not in function\n SyntaxError: syntax error\n SyntaxError: return
 not in function\n ReferenceError: string is not defined\n SyntaxError:
 return not in function\n SyntaxError: syntax error\n \n \n \n \n \n
 \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 \n \n \n \n \n \n SyntaxError: unterminated comment\n \n \n
 SyntaxError: return not in