[wtr-general] Can not load watir-webdriver

2013-03-20 Thread bhagyapr
Hi, I have successfully installed watir-webdriver. But when i type require watir-webdriver, the system is displaying an error message saying cannot load such file --ffi_c Please help me with this. Thanks, Bhagya. -- -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] Can not load watir-webdriver

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 6:31 AM, bhagy...@gmail.com wrote: cannot load such file --ffi_c Please search the google group for this error message, I remember it was mentioned a few days ago. Let us know if you do not find anything. Željko -- https://leanpub.com/watirbook -- -- Before posting,

[wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
Hi, I am curious to know about Logger.rb. Can i use it in watir webdriver? Where i can find more about it? Can someone share simple example? Thanks -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 10:39 AM, Sohail Mirza mrz...@gmail.com wrote: I am curious to know about Logger.rb. I am too. :) Can you link to it's home page? Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
Are you talking about the following home page? http://wiki.openqa.org/display/WTR/Example+Logging please share logger home page link. Thanks On Wed, Mar 20, 2013 at 1:41 PM, Željko Filipin zeljko.fili...@gmail.comwrote: On Wed, Mar 20, 2013 at 10:39 AM, Sohail Mirza mrz...@gmail.com wrote: I

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza mrz...@gmail.com wrote: Are you talking about the following home page? http://wiki.openqa.org/display/WTR/Example+Logging I am not talking about anything. I have asked what _you_ are talking about. :) The page that you have linked to was last

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
so i guess logger does not work with Watir Webdriver ... Can you suggest any other way around for logging the details ? one way which i know / found is to Test.rb test.txt is that the only way? Which one are using? On Wed, Mar 20, 2013 at 1:52 PM, Željko Filipin zeljko.fili...@gmail.comwrote:

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Sohail Mirza
okay i explain the context I want to record each step details in somewhere notepad file. For example whatever my script do , that should be recorded / logged in separate file with simplified details @browser = Watir::Browser.new :chrome @browser.goto (http://testapp:8080/;) should be recorded /

[wtr-general] problem

2013-03-20 Thread Sohail Mirza
Hi, i am facing problem in automating the following HTML code a href=#divCustomerLinesTab data-toggle=tabCustomer Linesspan class=tabLoading id=divCustomerLinesTabTab style=display: inline;/span/a I am using the following lines but NOTHING IS working for me :( please help advise

Re: [wtr-general] Re: how to click button from nested divs

2013-03-20 Thread Sohail Mirza
Finally i am able to resolve it but it works sometime and sometime it does not work *@browser.input(:value=Create New Customer).click* please advise another convenient way to handle it? Thanks, On Tue, Mar 19, 2013 at 6:36 PM, Sohail Mirza mrz...@gmail.com wrote: No Success Alex. Sorry On

Re: [wtr-general] problem

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 12:33 PM, Sohail Mirza mrz...@gmail.com wrote: I am using the following lines but NOTHING IS working for me not working is not enough data. Any error messages? Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Željko Filipin
On Wed, Mar 20, 2013 at 11:11 AM, Sohail Mirza mrz...@gmail.com wrote: @browser = Watir::Browser.new :chrome @browser.goto (http://testapp:8080/;) should be recorded / outputted / logged as Opening browser page with specified URL Did you take a look at available Ruby logger libraries?

[wtr-general] Re: problem

2013-03-20 Thread Super Kevy
Check your code is it: Customer Lines or CustomerLines or did you give us a typo. for the span click try puts @browser.span(:id=divCustomerLinesTabTab).exists? @browser.span(:id=divCustomerLinesTabTab).flash() @browser.span(:id=divCustomerLinesTabTab).click On Wednesday, March 20, 2013

[wtr-general] Re: newbie question cucumber-watir

2013-03-20 Thread Super Kevy
Since they're short examples Can you throw your features file and the step_definition files into the thread When in doubt refactor When /^I add (.*) to the search box$/ do |item| @browser.text_field(:name = 'j_username').set( item) end to supply a value you know works, like When /^I add

[wtr-general] How to select color from color picker

2013-03-20 Thread sk . fayaz
Hi, In my application I've come across a color picker where I've to select a particular color..I'm totally blocked here.Plz find the screenshot of the color picker... HTML code: input class=colorpicker type=text value=#00 name=title.colour style=display: none; div class=color_picker

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Dan
What's the problem? What have you tried so far? On Wednesday, March 20, 2013 11:47:26 AM UTC-4, sk.f...@gmail.com wrote: Hi, In my application I've come across a color picker where I've to select a particular color..I'm totally blocked here.Plz find the screenshot of the color picker...

[wtr-general] [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Alex Shtayer
Hi guys I have next situation: When I click on one of buttons in my application, page is loading for more than two minutes and raise exception inside of watir-webdriver click method. Obviously any waiters (like wait_until something) will not help in this situation, because exception is raised

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread sk . fayaz
Hi Dan, I've tried as below : browser.select_list(:class = 'color_picker').select '#993300' Got below error : unable to locate element, using {:class=color_picker, :tag_name=select} (Watir::Exception::UnknownObjectException) On Wednesday, March 20, 2013 3:47:26 PM UTC, sk.f...@gmail.com

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Dan
I don't see a select list in the html you pasted above. I think you want to do something like the below. b.div(:style = background-color: rgb(153, 51, 102); border-color: rgb(0, 0, 0);).click Obviously you need to make sure the picker is visible before you click on any of those squares. You

[wtr-general] Re: [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Dan
Check this out. Although I think waiting for a page to load for 2 minutes borders on unacceptable. http://stackoverflow.com/questions/9014121/how-do-i-change-the-page-load-timeouts-in-watir-webdriver-timeout-in-click-met On Wednesday, March 20, 2013 12:48:16 PM UTC-4, Alex Shtayer wrote:

[wtr-general] Re: [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Alex Shtayer
Great. Thanks Dan, I will try that solution -- -- 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 --- You received this

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-20 Thread Pavan Turlapati
Hi.. Anybody can help me.. Really looking for some help? On Tuesday, March 19, 2013 2:50:16 PM UTC-5, Pavan Turlapati wrote: Any help on this? On Tuesday, March 19, 2013 9:03:20 AM UTC-5, Pavan Turlapati wrote: Hello, I got one more problem which I need some experts to

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-20 Thread Dan
I would suggest using irb and stepping down into the elements to make sure they exist. For example. $ie.iframe(:id = 'PWGadget5Ifr').exists? $ie.iframe(:id = 'PWGadget5Ifr').frame(:name='actionForm').exists? If you get false for any of these you're going to need to look closer at the

Re: [wtr-general] are the docs on rubydocs for watir-webdriver current?

2013-03-20 Thread Chuck van der Linden
On Monday, March 18, 2013 11:30:17 AM UTC-7, Željko Filipin wrote: On Mon, Mar 18, 2013 at 7:15 PM, Chuck van der Linden cvande...@climate.com javascript: wrote: Right.. https://rubydoc.tenderapp.com/discussions/problems/159-why-would-github-docs-be-out-of-date-and-gem-docs-current

[wtr-general] Re: uninitialized constant Watir NameError

2013-03-20 Thread Chuck van der Linden
This is one of those so obvious in retrospect issues.. it basically has to do with the order and places that the ruby 'require' function searches for things when you require them. If there is more than one, it uses the first one it finds, even if that is not the one you wanted it to use. On

[wtr-general] Re: Watir::IE.attach issue

2013-03-20 Thread Chuck van der Linden
it might be a timing issue? What I might do is consider using the .window method instead of attach. I think that way you might be able to wait until it is present before trying to use it if I recall correctly we're pretty much deprecating .attach in favor of .window(:how = 'what').use

[wtr-general] Re: watirgrid not working: uninitialized constant Watir::Grid (NameError)

2013-03-20 Thread Chuck van der Linden
it gave me uninitialized constant Watir::Grid (NameError) This seems strange, almost like it did not find watirgrid when you required it.. OTOH Grid is not a stock part of Watir, So potentially the problem could be that you are requiring watir in your script (I notice his example does not

[wtr-general] Re: Can not load watir-webdriver

2013-03-20 Thread Chuck van der Linden
As Zeljko said, search... https://groups.google.com/forum/?fromgroups=#!topic/watir-general/MOOun5g3Hvg On Tuesday, March 19, 2013 10:31:07 PM UTC-7, bhag...@gmail.com wrote: Hi, I have successfully installed watir-webdriver. But when i type require watir-webdriver, the system is

[wtr-general] Re: Browser resize on watir-classic.

2013-03-20 Thread Chuck van der Linden
When I compare the rdocs for the Window class between watir-webdriver and watir-classic, there are a number of size related methods for watir-webdriver which are not there in watir-classic, so I believe the answer to your question is Nope, not supported on watir-classic On Tuesday, March 19,

Re: [wtr-general] Watir Webdriver Logger

2013-03-20 Thread Chuck van der Linden
On Wednesday, March 20, 2013 2:52:15 AM UTC-7, Željko Filipin wrote: On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza mrz...@gmail.comjavascript: wrote: Are you talking about the following home page? http://wiki.openqa.org/display/WTR/Example+Logging I am not talking about anything. I have

Re: [wtr-general] Re: how to click button from nested divs

2013-03-20 Thread Chuck van der Linden
On Wednesday, March 20, 2013 6:24:09 AM UTC-7, richdownie wrote: Have you tried waiting for the element? http://watirwebdriver.com/waiting/ That's pretty much what I would have suggested, especially if this is a page with a lot of ajax type operations, you may need to wait a tiny bit for

[wtr-general] Re: problem

2013-03-20 Thread Chuck van der Linden
On Wednesday, March 20, 2013 4:33:55 AM UTC-7, mc060200778 wrote: Hi, i am facing problem in automating the following HTML code a href=#divCustomerLinesTab data-toggle=tabCustomer Linesspan class=tabLoading id=divCustomerLinesTabTab style=display: inline;/span/a I am using the

[wtr-general] Re: How to select color from color picker

2013-03-20 Thread Chuck van der Linden
I think Dan is on the right track below. It looks a lot like that picker is something that pops up when you click or mouseover some other item on the screen. carefully observe what makes it appear, and let us know. use right-click to examine the element that makes the pallet appear. Try

[wtr-general] Re: [watir-webdriver] how to manage timeout for after click event

2013-03-20 Thread Chuck van der Linden
I agree, he must have really loyal customers if they are willing to wait that long for a page to load. (although truth be told I'm fighting that same performance battle right now with my current employer, so I greatly empathise On Wednesday, March 20, 2013 10:07:29 AM UTC-7, Dan wrote:

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-20 Thread Chuck van der Linden
just one offhand observation. in the first image I see a metric crapton of duplicated ID values.. that's invalid HTML right there.. On Tuesday, March 19, 2013 7:03:20 AM UTC-7, Pavan Turlapati wrote: Hello, I got one more problem which I need some experts to help me. I

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-20 Thread Chuck van der Linden
you mention what look like two different frames, but I don't see them in any of the screenshots.. and omg the nested tables.. what a mess, Not to mention repeated ID's and other identifiers, making it very tricky to uniquely identify any given element amongst that mess. . so web 1.0.. I feel

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-20 Thread Chuck van der Linden
On Wednesday, March 20, 2013 4:44:08 PM UTC-7, Chuck van der Linden wrote: you mention what look like two different frames, but I don't see them in any of the screenshots.. and omg the nested tables.. what a mess, Not to mention repeated ID's and other identifiers, making it very tricky to