[wtr-general] Re: Finding an element by using a variable

2013-04-11 Thread CrazyFrog
naturally. Thank you On Thursday, April 11, 2013 11:38:32 AM UTC+2, CrazyFrog wrote: > > Is it possible to use a variable to find an element. > see the example below > > searchParams = :name => "something", :class =>"else" >

[wtr-general] Finding an element by using a variable

2013-04-11 Thread CrazyFrog
Is it possible to use a variable to find an element. see the example below searchParams = :name => "something", :class =>"else" element = $browser.element(searchParams ) element.to_subtype.click regards CrazyFrog -- -- Before posting, please read ht

[wtr-general] press Tab after set text

2012-09-27 Thread CrazyFrog
Is it possible to press a TAB-key after i set text. Can i do something like this: browser.text_field(:name => "q").*set* "We are the People #{:TAB}" -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups

[wtr-general] Re: Unable to click the checkbox that i have found, checkbox below is checked!?

2012-09-27 Thread CrazyFrog
, CrazyFrog wrote: > > When i search for a checkbox and click on it, it always click the checkbox > below the checkbox i find > > lists = $browser.element(:id => checkboxgroup).to_subtype.lis > lists.each do |li| > chckbx = li.text > if

[wtr-general] Re: Unable to click the checkbox that i have found, checkbox below is checked!?

2012-09-27 Thread CrazyFrog
x27; but when i say 'li.checkbox.set' then the checkbox with the text 'FB, Facilitair Bedrijf' will be checked. On Thursday, September 27, 2012 11:56:51 AM UTC+2, CrazyFrog wrote: > > When i search for a checkbox and click on it, it always click the checkbox > below the check

[wtr-general] Re: Unable to click the checkbox that i have found, checkbox below is checked!?

2012-09-27 Thread CrazyFrog
here a snipped of the code i use -- 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  AB, Algemene Beleids- en Bestu

[wtr-general] Unable to click the checkbox that i have found, checkbox below is checked!?

2012-09-27 Thread CrazyFrog
When i search for a checkbox and click on it, it always click the checkbox below the checkbox i find lists = $browser.element(:id => checkboxgroup).to_subtype.lis lists.each do |li| chckbx = li.text if chckbx.strip == "check box to find" l

Re: [wtr-general] Error message when trying to select a text with the text "GW E&B stuurgroep"

2012-09-13 Thread CrazyFrog
Željko how can this solve my problem? i don't understand how i can use this. Can you gave me a short example? CrazyFrog -- 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/

[wtr-general] Error message when trying to select a text with the text "GW E&B stuurgroep"

2012-09-13 Thread CrazyFrog
When i want to select the text "GW E&B stuurgroep" from a text box then i get an error message I use the follow code to select the text : $browser.element(:id => "myDropdownbox").to_subtype.select "GW E&B stuurgroep" The error message that i get is : ERROR: "GW\u00A0E&B\u00A0Stuurgroep" not fo

Re: [wtr-general] Re: finding a object without knowing the object type

2012-06-18 Thread CrazyFrog
thank you, that is the solution. Raymond Op maandag 18 juni 2012 12:34:52 UTC+2 schreef Željko Filipin het volgende: > > On Mon, Jun 18, 2012 at 10:33 AM, CrazyFrog > wrote: > > > c:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/element.rb:433:in >

[wtr-general] Re: finding a object without knowing the object type

2012-06-18 Thread CrazyFrog
Hello i have a question I want to use the follow script require 'watir' include Watir ie = Watir::IE.new ie.goto("http://google.com";) ie.element(:name, "q").set("Watir") But i get the follow error message: c:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/element.rb:43

[wtr-general] Re: finding a object without knowing the object type

2012-05-07 Thread CrazyFrog
Thank you! This is exactly where I was looking for. -- 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] finding a object without knowing the object type

2012-05-07 Thread CrazyFrog
when i use watir and Selenium i can search for an element using myElement = $browser.find_element(:aFieldName => aValue) Can i do the same in Watir without using the selenium gem? After i have found the element i want to call some functions like click or set text functions is that possible? Regar