Re: [wtr-general] undefined method LoginByAccountno for #Watir::IE:0x68441e8

2012-10-02 Thread Željko Filipin
On Tue, Oct 2, 2012 at 3:46 AM, Joe Fleck joeflec...@gmail.com wrote: def login_by_uname(uname,pwd) if uname.nil? and pwd.nil? uname = per...@yahoo.com pwd = abcd1234 end

[wtr-general] Re: Unable to click buttons in the pop-up when the machine is locked

2012-10-02 Thread enroxorz
Have you looked at this? http://watirwebdriver.com/javascript-dialogs/ The latter portion will work with 3.0.0 (3.1.0 and higher will need to use the former). Also, if you are planning on using 3.1 or 3.2 in the future look at this post for an odd caveat that I found with Javascript Dialog

[wtr-general] Re: Get select list text

2012-10-02 Thread Jarmo Pertman
You can do something like this: select_list = b.select_list(:name = 'xxx') select_list.option(:value = select_list.value).text Or a different solution in one line: b.select_list(:name = 'xxx').selected_options[0].text Jarmo Pertman - IT does really matter - http://itreallymatters.net On

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

2012-10-02 Thread Jarmo Pertman
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 matter - http://itreallymatters.net On Tuesday, October 2, 2012 6:47:30 AM

[wtr-general] Re: Unable to click buttons in the pop-up when the machine is locked

2012-10-02 Thread Jarmo Pertman
You could also try to monkey patch RAutomation as described in this issue: https://github.com/jarmo/RAutomation/issues/28 Maybe it helps, i haven't tried. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, October 2, 2012 3:37:11 PM UTC+3, enroxorz wrote: Have

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 jarm...@gmail.com 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

Re: [wtr-general] undefined method LoginByAccountno for #Watir::IE:0x68441e8

2012-10-02 Thread newlearner
It logs in to mail application with uname and pwd hence cannot login to yahoo mail. - thanks On Monday, October 1, 2012 8:49:23 PM UTC-7, Joe Fl wrote: Hi, If you uncomment 'uname' and 'pwd' make the equal to nothing. You will need to change both .nil? to .empty? and it might work.

Re: [wtr-general] undefined method LoginByAccountno for #Watir::IE:0x68441e8

2012-10-02 Thread newlearner
thanks Zeljko. It still logs in to mail application with uname and pwd hence cannot login to yahoo mail. On Tuesday, October 2, 2012 1:53:45 AM UTC-7, Željko Filipin wrote: On Tue, Oct 2, 2012 at 3:46 AM, Joe Fleck joefl...@gmail.comjavascript: wrote: def

[wtr-general] variable for a URL?

2012-10-02 Thread Ry
I will try my best to explain my question. Is it possible... I have several sites, they are essentially the same, (same menus, reports ect..) the GUI is identical, but data may vary. Test sites, essentially, but each site has a different URL in testing or staging environment. Because

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

2012-10-02 Thread Dave McNulla
Of course. You can store information in a yaml file, ini file, or properties file. Where I work, we use buildr with properties files that allow us to switch the system under test as easily as using a different environment variable: buildr -e test cuke where test represents a test.properties

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

2012-10-02 Thread Ry
Would that work if URL changes a few times a day? We cut what we call a release from development and the URL contains link to our product site in the dev enviroment with the change code. So basically its a new URL for every change we do. On Tuesday, October 2, 2012 4:02:19 PM UTC-7, Dave

Re: [wtr-general] select_list issue - wrong number of arguments (1 for 0) (ArgumentError)

2012-10-02 Thread Barry Horgan
I notice that the source html that the select section is 'greyed out' for all select tags on the page, I assume this is why I get the element not visible error:- http://screencast.com/t/Njmjvyxon I do not have this issue on the Watir-Webdriver Demo page, it's select tags are not 'greyed