[wtr-general] Atlanta Meet Up Group

2012-02-24 Thread Oscar Rieken
Would there be any interest for anyone in the Atlanta Area on a monthly basis or so to meet up for presentations and discussions on Selenium or testing in general, I am also planning on reaching out to the Selenium and Cucumber communities to see if there is interest in those as well. If there is

Re: [wtr-general] Re: Watir not able to locate any element on the page

2012-03-16 Thread Oscar Rieken
maybe you can try and locate the div that is wrapped around the object you want and do a .html on what it returns and see if the element you want is actually there. because of the edited html we may not be looking at the right information for the element so you would have the best chance if you tri

Re: [wtr-general] watir-webdriver PageObjects example

2012-03-22 Thread Oscar Rieken
http://rubydoc.info/gems/watir-webdriver/0.5.3/Watir/Element#exists%3F-instance_method On Thu, Mar 22, 2012 at 12:00 PM, Rick wrote: > From the example implementation in > https://github.com/watir/watir-webdriver/wiki/Page-Objects, the following > is a class definition on UserPage > > class Us

Re: [wtr-general] Timeout error loading IE via watir-webdriver

2012-03-22 Thread Oscar Rieken
http://code.google.com/p/selenium/wiki/InternetExplorerDriver On Thu, Mar 22, 2012 at 2:19 PM, enroxorz wrote: > When I tried to load watir-webdriver via irb I receive the following > error. I am trying to load it with IE via Ruby 1.9.2 on Win XP > > irb(main):001:0> require 'watir-webdriver' >

Re: [wtr-general] Flex and Flash along with Watir

2012-03-22 Thread Oscar Rieken
I am going to go out on a limb here and say that as far as I know there is no plan for that but there are tools out there that can be used in conjunction with watir to help ease the pain watir + sikuli in jruby seems like a winner for me On Thu, Mar 22, 2012 at 2:35 PM, Max wrote: > >> "It is im

Re: [wtr-general] Re: Page Objects and Cucumber charity workshop live streaming!

2012-03-22 Thread Oscar Rieken
sorry dropped my phone and sent the message on accident What you are doing with the page objects are defining your elements in your own dsl so that along with making the objects reusable you are giving them names that make sense in example CLICK TO SEE THE INTERNET HAS THINGS in a home_page

Re: [wtr-general] Re: screenshots with watir (not webdriver)

2012-03-23 Thread Oscar Rieken
@hillary does it work if you just use watir and ie in the config.yml? it could just be the Watir:IE.new I will give this a look when i get some chance this weekend. On Fri, Mar 23, 2012 at 10:53 AM, Ry wrote: > hilary did you find an answer to your issue? I have the same problem. I > know it is

Re: [wtr-general] Re: Fire event doesn't seem to work

2012-03-26 Thread Oscar Rieken
why not use .hover? On Mon, Mar 26, 2012 at 2:19 PM, Litha K wrote: > Anyone? > > On Mar 25, 8:04 pm, Litha K wrote: > > Hi, > > > > I am using watir-webdriver 0.3.3 and trying to automate a scenario to > > mouse hover on a link to select sublinks. > > > > For example: if I go to: > > > > 1. ww

Re: [wtr-general] ERROR: Failed to build gem native extension.

2012-03-27 Thread Oscar Rieken
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit you have to install devkit in order to do that you have to download it and extract it then go into that folder that you extracted devkit to thru the command prompt type dk.rb init in the command line then type dk.rb install then you c

Re: [wtr-general] ERROR: Failed to build gem native extension.

2012-03-27 Thread Oscar Rieken
r error > > C:\devkit>gem install watir > ERROR: While executing gem ... (Zlib::BufError) > buffer error > > > On Tue, Mar 27, 2012 at 10:22 AM, Oscar Rieken wrote: > >> https://github.com/oneclick/rubyinstaller/wiki/Development-Kit >> >> you hav

Re: [wtr-general] ERROR: Failed to build gem native extension.

2012-03-27 Thread Oscar Rieken
t; `require' > from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in > `rescue in require' > from > C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in > `require' > from c2p_test_whats_new_dev.rb:6:in `' > >Exit code: 1 > >

Re: [wtr-general] Re: locating element within a frameset using PageObject

2012-03-27 Thread Oscar Rieken
looking at the code for page-object It looks like you define a frameset just like you define a frame no difference atleast looking at the commit for in_frame https://github.com/cheezy/page-object/commit/c4bc08691f02db102fb35d300ac953122eebf9f0 On Tue, Mar 27, 2012 at 3:18 PM, Rick wrote: > @b

Re: [wtr-general] Re: did name get removed as a way to identify a link

2012-03-27 Thread Oscar Rieken
Pik is a tool to manage multiple versions of ruby on Windows. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash. https://github.com/vertiginous/pik just so you know there is one out there :) if you post the html for the nav maybe there is another way On Tue,

Re: [wtr-general] Re: Not able select options from dynamic select text box

2012-03-31 Thread Oscar Rieken
you can try divs_s.attribute_value("id") thay may or may not be right i am a bit hungover at the moment but its similar to in selenium to use .attributes("id") it should just return that attribute you want On Sat, Mar 31, 2012 at 9:33 AM, srinivasarao jyothi < srinivasaraojyo...@gmail.com> wrote:

Re: [wtr-general] Testing theory/approach question from SO

2012-04-05 Thread Oscar Rieken
I would treat each client site as its own site (which it is really) and create a page class for each page they are similar but they all behave differently you could chop them all up into "partials" of each page or in taza you can do filtering (sorry I am not familiar with page-object) then you woul

Re: [wtr-general] Testing theory/approach question from SO

2012-04-05 Thread Oscar Rieken
no I meant the gem page-object http://www.cheezyworld.com/2011/07/29/introducing-page-object-gem/ I prefer taza https://github.com/hammernight/taza both are gems to help you manage and build your frameworks using the page object pattern On Thu, Apr 5, 2012 at 9:37 PM, Adam Reed wrote: > Than

Re: [wtr-general] Re: Change a method from .custom_method(object_attrib) to object(attrib).custom_method?

2012-04-06 Thread Oscar Rieken
As long as the object you are returning is still a kind of watir object then you should have the .click method for it you can also check out how taza does it it allows you to do something similar to page.rb element(:the_li_I want){ |name| browser.li(:text => name)} element(:some_button_for_my_li

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Oscar Rieken
http://rubydoc.info/gems/watir-webdriver/0.5.6/Watir/Element#drag_and_drop_on-instance_method http://rubydoc.info/gems/watir-webdriver/0.5.6/Watir/Element#drag_and_drop_by-instance_method On Thu, May 3, 2012 at 9:19 AM, onk wrote: > ok, in my application there is a work space manager where we c

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Oscar Rieken
can you throw up some html? On Tue, May 8, 2012 at 11:01 AM, Željko Filipin wrote: > On Tue, May 8, 2012 at 4:53 PM, Cassiano Leal > wrote: > > def file_name > > @browser.frame.file_field(id: 'fileName') > > end > > > > def file_name=(filename) > > file_name.set filename

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Oscar Rieken
to me it looks like its actually your framework and you are not where you think you are I would probably get rid of the module inside of the class and see if that makes a difference trying to access the method and maybe creating the new methods in the test instead of in the framework again just to

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Oscar Rieken
:p I would recommend taza ;) https://github.com/hammernight/taza examples with rspec and cucumber https://github.com/hammernight/etsy_cucumber_taza_tutorial On Tue, May 8, 2012 at 4:30 PM, Željko Filipin wrote: > I would suggest that you start using page-object gem instead of creating > your own

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Oscar Rieken
mation framework so > that I don't need to do stupid repetitive tasks manually via the worst web > UI I have ever seen. :) In other words, I'm a user of this tool, not a > tester. > > > On 8 May 2012 17:33, Oscar Rieken wrote: > >> :p I would recomm

Re: [wtr-general] Re: getting connection error, can anyone help?

2012-05-10 Thread Oscar Rieken
yeah that would be my guess On Thu, May 10, 2012 at 11:54 AM, Tiffany Fodor wrote: > Hello! > > Are you connecting to the internet through a proxy? > > https://github.com/rubygems/rubygems/issues/267 > > Also, can you update gems individually, or is it just a problem with > trying to update ever

Re: [wtr-general] Silverlight Application Automation using WATiR

2012-05-14 Thread Oscar Rieken
you can not with watir or selenium but you may have some luck using White http://white.codeplex.com/ I have used it on a few projects it works just fine On Mon, May 14, 2012 at 10:41 AM, SANTHOSH KUMAR KORADA < santhosh.virt...@gmail.com> wrote: > Hi, > > Could you please provide the below infor

Re: [wtr-general] Re: Silverlight Application Automation using WATiR

2012-05-14 Thread Oscar Rieken
Good call on Sikuli. On Mon, May 14, 2012 at 1:22 PM, Chuck van der Linden wrote: > On Monday, May 14, 2012 7:41:28 AM UTC-7, SANTHOSH KUMAR KORADA wrote: >> >> Hi, >> >> Could you please provide the below information about WATiR? >> >> In our current project, there is a requirement that we need

Re: [wtr-general] Re: verify text using OR statement

2012-05-17 Thread Oscar Rieken
I kind of don't understand why you would have a test that could be one thing or could be something else why not just have scenarios that check for each thing but then again I am more of the thought one assertion per test/step On Thu, May 17, 2012 at 8:19 PM, Anthony Hallett wrote: > try > brows

Re: [wtr-general] Cucumber "Background" vent (and request for advice)

2012-05-18 Thread Oscar Rieken
quick example but you may get the idea you can have a step that accepts a url and hands it to your browser and you can have a hook that always goes to a certain place by default hooks.rb Before do @browser = Watir::Browser.new :chrome end Before("@main_site") do @browser.goto "www.somesite.com" e

Re: [wtr-general] Cucumber "Background" vent (and request for advice)

2012-05-18 Thread Oscar Rieken
tags or additional steps pointing you to the site you want to go to all of our feature files are kept in the same directory for about 6 different applications including mobile you could push that sort of thing down into the framework you have around your site and then it would just be a matter of

Re: [wtr-general] Cucumber "Background" vent (and request for advice)

2012-05-18 Thread Oscar Rieken
not every scenario only every scenario in that feature file so if that feature was called things_only_for_active_users.feature it would not run for any other feature On Fri, May 18, 2012 at 3:25 PM, Abe Heward wrote: > Not to mention your "given I'm an active user" is now going to happen > befor

Re: [wtr-general] safari developer certificate

2012-05-30 Thread Oscar Rieken
I dont think so I am sure you can probably just register the cert on the other machines and install the plugin On Wed, May 30, 2012 at 11:00 AM, Dan wrote: > So, this is most likely a question that belongs on an Apple forum instead, > but I figure maybe someone here knows this. Are the safari d

Re: [wtr-general] Taza - Do not restart the session for each example

2012-06-08 Thread Oscar Rieken
I am going to guess that in each example (using rspec) you are doing a new site block Site.new do |site| site.whatever .. .. .. .. end If you dont do it that way you can do something like this describe "HomePage" do let(:etsy) { Etsy.new } before(:each) do etsy.home_page end after(:

Re: [wtr-general] Re: Taza - Do not restart the session for each example

2012-06-11 Thread Oscar Rieken
well If i remember correctly its something like this def attach @browser = Watir::IE.attach(:title /#{title}/) end On Mon, Jun 11, 2012 at 12:43 PM, hillary wrote: > That's not really what I need. > > I'd like every test within the spec to be run within the same browser > instance. Therefo

Re: [wtr-general] Re: Wait for new page after click without resorting to nasty tricks

2012-06-13 Thread Oscar Rieken
yeah its pretty hard to give an answer that might actually help without some code to look at. When the form is submitted what happens? do the fields become disabled? is there some sort of spinner to show that the forms is actually doing something? why does the form take so long to do a post? Are

Re: [wtr-general] Re: Wait for new page after click without resorting to nasty tricks

2012-06-13 Thread Oscar Rieken
On Wed, Jun 13, 2012 at 8:36 AM, Ben Armstrong wrote: > On 13/06/12 05:16 AM, Chuck van der Linden wrote: > >> Ben is there a public version of the page that you could point people to, >> along with a brief bit of watir code so that we can see the behavior for >> ourselves. >> > > Unfortunately n

Re: [wtr-general] Re: Wait for new page after click without resorting to nasty tricks

2012-06-13 Thread Oscar Rieken
browser to load I am going again to guess there is probably a way to hook into the events happening on the page to check if its done or not (but that's just me) On Wed, Jun 13, 2012 at 9:53 AM, Ben Armstrong wrote: > On 13/06/12 10:33 AM, Oscar Rieken wrote: > > > How would w

Re: [wtr-general] Watir / Ajax question

2012-06-15 Thread Oscar Rieken
looks like you are not finding your iframe C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/elemen t.rb:66:in `assert_exists': *Unable to locate element, using {:tag_name=>["frame"* *, "iframe"], :name=>"store"}* (Watir::Exception::UnknownFrameException) On Fri, Jun 15, 2

Re: [wtr-general] Re: Need urgent help

2012-06-20 Thread Oscar Rieken
word On Wed, Jun 20, 2012 at 4:12 AM, Chuck van der Linden wrote: > Without seeing a sample of the html it's hard to give you an exact > solution. > We'll be glad to try and assist you, but there is one sticking point. > > Disney's terms of use for the ABC site specifically prohibit automated > a

Re: [wtr-general] already initialized constant

2012-06-21 Thread Oscar Rieken
Here is a really simple post i wrote up to get some of my team members up to speed with the basic idea of how to use cucumber and watir-webdriver. This may help you some http://thechort.com/blog/2012/03/01/automated-testing-from-the-beginning/ http://thechort.com/blog/2012/03/03/automated-testing-

Re: [wtr-general] Tree iteration

2012-06-29 Thread Oscar Rieken
1 2 ** * * * 3* * * * * *4* * * pretty sure that lis will grab all of the li's in side of whatever element is. @browser.div.lis will return a collection of the lis contained inside of div why not use the text of the li? @browser.li(:te

[wtr-general] Selenium::WebDriver::Error::UnknownError with chromedriver and watir-webdriver 0.6.1

2012-06-29 Thread Oscar Rieken
has anyone come across this using the newer version of chromedriver and watir-webdriver 0.6.1 selenium 2.24.0 browser.labels.first Selenium::WebDriver::Error::UnknownError: findElements returned invalid value: "[{\"ELEMENT\": \":wdc:1341015514704\"}, {\"ELEMENT\": \":wdc:1341015514702\"}, {\"ELEME

Re: [wtr-general] Queries on Watir

2012-07-06 Thread Oscar Rieken
On Fri, Jul 6, 2012 at 3:43 AM, Željko Filipin wrote: > On Fri, Jul 6, 2012 at 6:55 AM, Sophia Sunitha > wrote: > > The tool can operate in Virtual systems > > [VMWare, Virtual PC, Citrix Env, etc] > > Watir does not care if you run it inside a virtual machine. I have used > vmware fusion. >

Re: [wtr-general] Re: Queries on Watir

2012-07-06 Thread Oscar Rieken
when this thread is finished I think we should just compile all of the information and add it to the site to avoid having to answer this all over again On Fri, Jul 6, 2012 at 9:03 AM, Dan wrote: > In terms of Oracle, if it's using java applets, which most of the Oracle > stuff I encounter here i

Re: [wtr-general] [TAZA] attempting to run tests with watir_webdriver

2012-07-06 Thread Oscar Rieken
hard to say but lookst like test_page_spec.rb 83 may point you in the right direction im guessing something is not being required On Fri, Jul 6, 2012 at 6:40 PM, hillary wrote: > So I need to use watir for running tests in ie (I have to test on ie8, and > there's still that protected mode strang

Re: [wtr-general] [TAZA] attempting to run tests with watir_webdriver

2012-07-10 Thread Oscar Rieken
I wrote up a spec that uses the Site.new block like you are using with watir-webdriver and it worked fine https://github.com/hammernight/etsy_rspec_taza_tutorial/blob/master/spec/isolation/etsy/shopping_cart_old_school_taza_spec.rb It could be something in your config you can check the spec_help

Re: [wtr-general] watir

2012-07-11 Thread Oscar Rieken
http://watir.com/examples/ On Wed, Jul 11, 2012 at 9:09 AM, mani racha wrote: > Hi all, > I am new to watir...I am getting problem while accessing the item in the > select list in my application. > I have tried the command > browser.select_list(:id,"...").set(" ") > browser.select_list(:id,' ').

Re: [wtr-general] Automating actions in canvas using watir

2012-07-11 Thread Oscar Rieken
here is an example using selenium-webdriver you can do the same with watir-webdriver http://www.youtube.com/watch?v=yugolxP3rhc&feature=plcp https://github.com/davehunt/selenicopterpilot On Wed, Jul 11, 2012 at 1:33 PM, Shiv wrote: > Hello, > > I am working on social games that uses html5 &

Re: [wtr-general] Re: Selenium::WebDriver::Error::UnknownError with chromedriver and watir-webdriver 0.6.1

2012-07-12 Thread Oscar Rieken
I uninstalled all other gem versions and redownloaded chromedriver and it seems to work fine now. On Thu, Jul 12, 2012 at 2:17 PM, amos wrote: > Oh, and if it helps, I'm using Mac OS Lion, 10.7.4 > > > On Thursday, July 12, 2012 11:09:06 AM UTC-7, amos wrote: >> >> I didn't get that error in the

Re: [wtr-general] check if the object is Link or anything else?

2012-07-25 Thread Oscar Rieken
this may help you do what you want but i personally don't thing its the right appoach http://jarib.github.com/watir-webdriver/doc/Watir/Element.html#to_subtype-instance_method and you could just create a method that grabs all of the rows from your table and then check to see if that checks for yo

Re: [wtr-general] Re: Path to Ruby scripts

2012-07-26 Thread Oscar Rieken
Ill chime in with https://github.com/hammernight/taza/ On Wed, Jul 25, 2012 at 4:55 AM, Željko Filipin wrote: > On Wed, Jul 25, 2012 at 10:49 AM, mitu wrote: > > Can anybody teach me how to create a framework to automate a web > application in Watir Ruby. > > I am using page-object gem on a cou

Re: [wtr-general] Watir Framework?

2012-07-28 Thread Oscar Rieken
you can also check out taza https://github.com/hammernight/taza/ On Sat, Jul 28, 2012 at 4:38 PM, John Fitisoff wrote: > It's pretty easy to roll your own. You may not want to or need to. But > it's not hard. > > Here's something that you can experiment with: > > -Create a directory > -Create so

Re: [wtr-general] Problems with the latest chromedriver

2012-08-01 Thread Oscar Rieken
Yeah it has to do with prototype 1.6.1 the easy work around is to use chromedriver 20 until 22 is released On Wed, Aug 1, 2012 at 5:24 PM, Željko Filipin wrote: > On Wed, Aug 1, 2012 at 11:08 PM, Rahul Sharma > wrote: > > I also found a similar issue filed as a bug but a while ago! > > http://c

Re: [wtr-general] Rich Face Testing with Watir

2012-08-08 Thread Oscar Rieken
I would suggest showing a bit more of the html structure or a link to something similar? On Wed, Aug 8, 2012 at 10:12 AM, Wind Dive wrote: > Nice on the Donald Trump joke :D. > > Using your suggestion b.table(:class, 'rich-tree-node').tbody(:**index, > 1) the program give me an error stating it

Re: [wtr-general] Rich Face Testing with Watir

2012-08-09 Thread Oscar Rieken
http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired On Thu, Aug 9, 2012 at 10:56 AM, Wind Dive wrote: > Here is the line of code I used. > > @@browser.div(:class => 'rich-tree-node-children > rich-tree-h-ic-line').tbody(:index, 0).tr(:index => 0).td(:index =

Re: [wtr-general] Can Watir handle HTML attributes that contain dashes?

2012-08-09 Thread Oscar Rieken
https://github.com/watir/watir-webdriver/blob/master/lib/watir-webdriver/elements/generated.rb to me it looks like it could be possible to just call it something like without the dashes and then monkey patch def data_element_id(*args) DataElementId.new(self, extract_selector(args).merge(:tag_n

Re: [wtr-general] Assert a date format with Watir

2012-08-10 Thread Oscar Rieken
To me this sounds like more of whatever framework you are using to actually write your tests you can probably do a regex to verify the format but without some more details of what exactly you want to compare it may be difficult to help out I would ask why are you trying to test this and what your

Re: [wtr-general] Assert a date format with Watir

2012-08-10 Thread Oscar Rieken
I would suggest using the chronic gem for your dates 1.9.3p194 :002 > Chronic.parse("the first day of last week") => 2012-07-29 12:00:00 -0400 1.9.3p194 :013 > Chronic.parse("the first day of last week").strftime("%D") => "07/29/12" On Fri, Aug 10, 2012 at 12:45 PM, Ry wrote: > > Given /^th

Re: [wtr-general] Dynamic Objects Handling

2012-08-15 Thread Oscar Rieken
well watir allows you to get collections of elements http://watir.github.com/watir-webdriver/doc/Watir/Container.html#trs-instance_method On Wed, Aug 15, 2012 at 2:58 AM, Sohail Mirza wrote: > Hi, > > I just wanted to know does *watir* gives us facility to handle dynamic > objects in the appl

Re: [wtr-general] taza - example of passing in a profile for firefox

2012-08-15 Thread Oscar Rieken
Sadly no that has not been added yet I just do this elsif ENV['BROWSER'] == 'firefox' profile = Selenium::WebDriver::Firefox::Profile.new profile.add_extension File.expand_path("/tools/extensions/firebug-1.9.2.xpi", __FILE__) profile.add_extension File.expand_path("/

Re: [wtr-general] Click on Hidden button

2012-08-28 Thread Oscar Rieken
a user can not click on a hidden button so in reality you shouldn't either but perhaps you mean something else On Tue, Aug 28, 2012 at 6:11 AM, Kayen wrote: > Hi all, > > I am using Watir-Webdriver for my web automation and please could someone > let me know whether its possible to click on a h

Re: [wtr-general] I'm failing at changing the timeout length

2012-08-28 Thread Oscar Rieken
It should just be wait_until_present(180) but to me 180 seems like trying to bypass a problem perhaps there is something else that can be done to avoid waiting for that long On Tue, Aug 28, 2012 at 10:07 AM, Hams99 wrote: > Running Ruby1.9.1 and using watir-webdriver gem. > In my testing a new

Re: [wtr-general] Verify if a tag appears on a page

2012-09-06 Thread Oscar Rieken
well you can first locate the element and then there a few different ways to check if the element exists? http://watir.github.com/watir-webdriver/doc/Watir/Element.html#exists%3F-instance_method On Thu, Sep 6, 2012 at 12:48 PM, Daniela wrote: > Hi.. > > Please, how can i verify if an object appe

Re: [wtr-general] Re: deleting text in a RichTextArea

2012-09-25 Thread Oscar Rieken
why not send control A and then delete On Tue, Sep 25, 2012 at 2:04 PM, Joe Fl wrote: > The problem I am having is when this line of code is > executed @browser.frame(:class=>/gwt-**RichTextArea/).click > in Chrome the cursor is place at the end of the string and in Firefox the > cursor ends up

Re: [wtr-general] Re: deleting text in a RichTextArea

2012-09-25 Thread Oscar Rieken
send_keys :delete On Tue, Sep 25, 2012 at 4:51 PM, Joe Fleck wrote: > Hi Oscar, > > Thank you for responding. > > Isn't that what I am doing already? I am not fimiliar with send_keys > other than typing out text. > > Thank you, > Joe > On Sep 25, 2012 2:04 PM,

Re: [wtr-general] undefined method "LoginByAccountno" for #

2012-10-01 Thread Oscar Rieken
to me this seems like a simple problem of not really understanding ruby and how classes and methods work I would suggest to pick up the pickaxe book http://pragprog.com/book/ruby3/programming-ruby-1-9 def some_method(username, password) user_name_element.set username user_password_element.set pa

Re: [wtr-general] Using ternary operator with Watir

2012-10-01 Thread Oscar Rieken
http://railstips.org/blog/archives/2008/12/01/unless-the-abused-ruby-conditional/ if result result.click end On Mon, Oct 1, 2012 at 3:57 PM, John Fitisoff wrote: > Here's another way that might work: > > #This should return either an object or nil > result = @browser.table(:index, 3).links.f

Re: [wtr-general] Using ternary operator with Watir

2012-10-02 Thread Oscar Rieken
word On Tue, Oct 2, 2012 at 12:53 PM, Jarmo Pertman wrote: > Or even > result.click if result > > But i would drop the #find call also and use just Watir API: > result = @browser.table(:index, 3).link(:text => link_name) > result.click if result.exists? > > Jarmo Pertman > - > IT does really

Re: [wtr-general] Re: variable for a URL?

2012-10-03 Thread Oscar Rieken
if its a differnt url for every build depending on the changes in the url why not just pass that in to the url string at run time On Tue, Oct 2, 2012 at 8:48 PM, Ry wrote: > Would that work if URL changes a few times a day? We cut what we call a > release from development and the URL contains li

Re: [wtr-general] Re: variable for a URL?

2012-10-03 Thread Oscar Rieken
lets say you set an environment variable ENV['URL'] ||= "test" then when you call the url you can do something like browser.goto("www.someserver.com/#{ENV['URL']}/app_path/") so by default if you just do something like rspec it will go to "www.someserver.com/test/app_path/" but if you do

Re: [wtr-general] Re: How to automate sub-menu items using watir.

2012-10-25 Thread Oscar Rieken
you should probably hover over the menu and then click the element you want On Thu, Oct 25, 2012 at 1:41 PM, Bhavesh wrote: > Im able to click on main menu i.e "View". > > im using like this to click View menu : > > $ie.frame(:id, 'MainEx_view_0').frame(:id, > 'Classic_workarea_0').frame(:id, 'F

Re: [wtr-general] undefined method `exists?' for link (PageObject gem)

2012-11-01 Thread Oscar Rieken
this kind of test honestly confuses me I understand you want to check to see if the link exists so why not do that instead of calling a method to check to see if it exists and then checking to see if that method returns true I dont use page_object but I think this is the right syntax (on(LoginPag

Re: [wtr-general] Random numbers

2012-11-02 Thread Oscar Rieken
This is really more a ruby question than a watir one. I suggest you look into http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sample number_from_array = %w{2 3 9 55 11} number_from_array.sample On Fri, Nov 2, 2012 at 6:00 AM, Adrian Killens wrote: > How would you write something to gene

Re: [wtr-general] Re: best practice- mysql and web applications

2012-11-08 Thread Oscar Rieken
I personally would use Active Record and FactoryGirl On Thu, Nov 8, 2012 at 9:29 AM, Dan wrote: > In terms of tools for connecting to and querying mysql, I would use this > gem https://rubygems.org/gems/mysql. > > > On Thursday, November 8, 2012 1:37:22 AM UTC-5, Aaron Schwartz wrote: >> >> Hi

Re: [wtr-general] Can you create an array from the values in a select list?

2012-11-21 Thread Oscar Rieken
what does the html of the select list look like On Wed, Nov 21, 2012 at 5:14 PM, Adrian Killens wrote: > I can do it with options like this: > > selectList = b.select_list(:id, 'blah') > selectContent = selectList.values.map(&:text) > b.select(:id, 'blah').select_value(selectContent[1]) > >

Re: [wtr-general] Can you create an array from the values in a select list?

2012-11-21 Thread Oscar Rieken
I have a few questions. Why would you want to collect the values to make sure they are in the select? what if they are not in the right order? what if the text and the values do not match up correctly? what value is this test really giving? but to answer your question which you were on the right

Re: [wtr-general] Parallel testing

2012-11-22 Thread Oscar Rieken
word!, what Željko said. watir-webdriver over Selenium Grid works like a champ.we currently run 40 vm's with 10 firefox nodes and 10 chrome nodes 20 vm's with multiple versions of ie 5 mac mini's running safari, iphone and android On Thu, Nov 22, 2012 at 4:06 AM, Željko Filipin wrote: > On Thu

Re: [wtr-general] Re: How to extract text from

2012-12-08 Thread Oscar Rieken
might be a good idea to look at how the api is before you try and use java in ruby :) my assumption is that you have a java background because of the get_text() http://watir.github.com/watir-webdriver/doc/Watir/Element.html On Sat, Dec 8, 2012 at 9:15 AM, Željko Filipin wrote: > On Sat, Dec 8,

Re: [wtr-general] Re: Isn't .exists? a boolean method?

2012-12-13 Thread Oscar Rieken
did you try upping the time out or using when_present to see if its a page loading issue? or do you already know that the page is completely loaded and expect it to fail On Thu, Dec 13, 2012 at 2:48 PM, Abe Heward wrote: > That'll be tough, unfortunately. The basic issue, though, is: > > 1) T

watir-general@googlegroups.com

2012-12-16 Thread Oscar Rieken
Its a flash object watir can not intertact with those types of objects On Wed, Oct 10, 2012 at 5:02 AM, Doris Tian <895512...@qq.com> wrote: > http://bulo.hujiang.com/menu/8856/item/600318/### -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. w

Re: [wtr-general] Looong pauses while calling present?, exists?, etc... - why do you think this happens?

2012-12-17 Thread Oscar Rieken
what OS are you guys on because I am not seeing this sort of issue on osx or rhel On Mon, Dec 17, 2012 at 11:37 PM, Nigel wrote: > Thanks - had a look at the thread Abe started. Rolling back to Firefox 16 > solved the issues. > > > -- > Before posting, please read http://watir.com/support. In

Re: [wtr-general] Timeout error

2012-12-19 Thread Oscar Rieken
I would think that 10 minutes for a page to load is unacceptable for anyone. I would talk to the devs and tell them about this defect. On Wed, Dec 19, 2012 at 11:40 AM, Željko Filipin wrote: > On Wed, Dec 19, 2012 at 5:24 PM, sunitha m wrote: > >> For the page to load it takes more than 10 min

Re: [wtr-general] Watir with Safari!!!

2013-01-16 Thread Oscar Rieken
+1 it does work its a bit slower than with other browsers and an involved process of installing the driver On Wed, Jan 16, 2013 at 6:42 AM, Željko Filipin wrote: > On Wed, Jan 16, 2013 at 11:53 AM, Sophia Sunitha > wrote: > >> Whether WATiR can be used to automate in Safari browser? > > > This

Re: [wtr-general] Unable to acces text_field inside a frame coz of some "#document" tag in the HTML.

2013-01-23 Thread Oscar Rieken
#document is not creating a problem unless you are using it to locate your frame i agree with joe show us your code and how you are trying to flash the frame On Wed, Jan 23, 2013 at 10:00 AM, Joe Fleck wrote: > Hi, can you provide us with your code? > > Thank you, > Joe > On Jan 23, 2013 9:38

Re: [wtr-general] Newb question

2013-02-11 Thread Oscar Rieken
you can even do BROWSER.text.should include(query) On Mon, Feb 11, 2013 at 4:49 AM, Željko Filipin wrote: > On Mon, Feb 11, 2013 at 12:23 AM, Glenn Waters wrote: > >> Then /^I should see "(.*)"$/ do |query| >> BROWSER.text.include?(query).should == true >> BROWSER.close >> end >> > > Chang

Re: [wtr-general] Custom report system for cucumber+watir-webdriver

2013-03-05 Thread Oscar Rieken
if you use jenkins you can use something like this *https://github.com/masterthought/cucumber-reporting* * * *https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java * On Tue, Mar 5, 2013 at 4:14 PM, Alex Shtayer wrote: > Just curious, maybe someone was working before to creat

Re: [wtr-general] Re: Custom report system for cucumber+watir-webdriver

2013-03-06 Thread Oscar Rieken
Might be better to ask on the cucumber mailing list, but i can tell you there are a lot of cucumber formatters out there that give you all this extra information On Wed, Mar 6, 2013 at 11:15 AM, Alex Shtayer wrote: > Yes, mostly I am speaking about HTML reports generated by Cucumber, but > abso

Re: [wtr-general] Re: Custom report system for cucumber+watir-webdriver

2013-03-06 Thread Oscar Rieken
https://groups.google.com/forum/?fromgroups#!forum/cukes On Wed, Mar 6, 2013 at 11:22 AM, Alex Shtayer wrote: > Could you please point me to that list, because I cannot find anything > more than IRC chat of that group > > Really sorry for stupid question > > -- > -- > Before posting, please re

Re: [wtr-general] retrieve hidden text values with watir webdriver

2013-03-07 Thread Oscar Rieken
well from your error it looks like you are using text_field? to locate a hidden. my first question is why? when hidden and hiddens exist http://watir.github.com/watir-webdriver/doc/Watir/Container.html#hidden-instance_method why not locate the hidden and get its value? On Thu, Mar 7, 2013 at 10:

Re: [wtr-general] Watir HTML Reports

2013-03-14 Thread Oscar Rieken
Same here On Thu, Mar 14, 2013 at 5:36 AM, Željko Filipin wrote: > On Thu, Mar 14, 2013 at 9:14 AM, Sohail Mirza wrote: > >> Could you comments some good cucumber articles? > > > All I know about cucumber I have found here: http://cukes.info/ > > Željko > > -- > -- > Before posting, please read

Re: [wtr-general] Watir HTML Reports

2013-03-14 Thread Oscar Rieken
I have a few posts and code examples here http://thechort.com/blog/ there are a bunch here as well http://watirmelon.com/ On Thu, Mar 14, 2013 at 9:36 AM, Super Kevy wrote: > I found this article that makes a nice intro to get you into it the idea > of cucumber in under a day > http://taooftest

Re: [wtr-general] Unable to set value into a textbox which is deep into a table

2013-03-15 Thread Oscar Rieken
I think you are making the location more complicated than it needs to be. if its the only :name => '$PSearchPage$pClaimNumber', :id => "ClaimNumber" you could do something like b.iframe(:id => 'PWGadget3Ifr').text_field(:name => '$PSearchPage$pClaimNumber', :id => "ClaimNumber").html On Fri, Mar

Re: [wtr-general] Is that possible to add a console in watir webdriver?

2013-03-22 Thread Oscar Rieken
you could also add the pry gem to your project and it will give you a REPL where ever you bind to pry. https://github.com/pry/pry On Fri, Mar 22, 2013 at 8:08 AM, Ekin Han wrote: > OK,thanks, that helps a lot > > > 2013/3/22 Rich Downie > >> You cancreate an alias shorter than watir console. >

Re: [wtr-general] how to call script within script

2013-03-26 Thread Oscar Rieken
I would also suggest picking up the ruby pickaxe book http://pragprog.com/book/ruby4/programming-ruby-1-9-2-0 http://mislav.uniqpath.com/poignant-guide/ and actually learning ruby here are a few places that may help as well http://tryruby.org/levels/1/challenges/0(free) http://www.codeschool.co

Re: [wtr-general] New at creating test automation using Watir: a few problems I can't solve

2013-03-28 Thread Oscar Rieken
Do you have permission to write automated test with proflowers.com? On Thu, Mar 28, 2013 at 8:20 PM, Mikey wrote: > Hi, > I have new at Watir and though I have only been using it for about 3 or 4 > hours, I am very impressed. It looks very promising. > Anyway. I am trying to create an automated

Re: [wtr-general] Does selenium ide support watir webdriver formmater?

2013-04-03 Thread Oscar Rieken
lol On Wed, Apr 3, 2013 at 2:37 PM, Željko Filipin wrote: > On Wed, Apr 3, 2013 at 8:32 PM, Chuck van der Linden < > cvanderlin...@climate.com> wrote: > >> maybe I should take that bit above, re-write a little and post it. > > > That is what I do. :) > > Željko > > -- > -- > Before posting, plea

Re: [wtr-general] Re: 2 browsers being started but only one used...

2013-04-09 Thread Oscar Rieken
you only need 1 env.rb in the support directory this problem. if you have a directory called features you can have all the sub directories you want inside of there. I suggest you pick up the cucumber book and learn more about how cucumber actually works. Thanks Oscar On Tue, Apr 9, 2013 at 5:11

Re: [wtr-general] Re: JSON API using cucumber and watir webdriver

2013-04-11 Thread Oscar Rieken
I agree with chuck to me it seems testing a webservice with a tool made for automating the browser is like using the back of a screwdriver to drive a nail in. yes it works but it might not be the best way to do it. I would suggest just sending requests directly to the api using something like http

Re: [wtr-general] Using watir with html 5

2013-04-15 Thread Oscar Rieken
watir-classic => http://rubydoc.info/github/watir/watir-classic/Watir/Container watir-webdriver => http://watir.github.io/watir-webdriver/doc/Watir/Container.html they both contain footer(s) and header(s) On Mon, Apr 15, 2013 at 6:02 AM, Željko Filipin wrote: > On Mon, Apr 15, 2013 at 8:56 AM,

Re: [wtr-general] Does Watircraft 0.5.0 supports watir-classic 3.6.0 ?

2013-04-17 Thread Oscar Rieken
or taza :D https://github.com/hammernight/taza Shameless plug On Wed, Apr 17, 2013 at 7:32 AM, Željko Filipin wrote: > On Wed, Apr 17, 2013 at 1:30 PM, Pavithra wrote: > >> I had been working on Functional Automation using Ruby 1.8.6, Watir 1.6.5 >> with Watir-Craft framework. > > > As far as

Re: [wtr-general] Re: Watir and Chrome: unit tests give Errno::ECONNREFUSED once in 50 tests

2013-04-19 Thread Oscar Rieken
my guess is that you are using a headless jenkins slave to run your tests I would suggest in setting up xvfb or something similar to launch your browser in On Fri, Apr 19, 2013 at 8:55 AM, Justin Ko wrote: > Based on the exception, it looks like you are on selenium-webdriver > version 2.29.0.

Re: [wtr-general] Custom profile for Chrome

2013-04-25 Thread Oscar Rieken
Why not ask the guys at SauceLabs? in theory if you are using the same version they are you should be able to do it there as well. they might have removed some functionality from setting the profile to prevent malicious code from being executed on their servers On Thu, Apr 25, 2013 at 12:21 PM, R

  1   2   >