Re: [wtr-general] Watir 3 Released!

2012-04-24 Thread Željko Filipin
On Mon, Apr 23, 2012 at 11:57 PM, Jarmo Pertman jarm...@gmail.com wrote: You may do that if possible. Done: http://watir.com/2012/04/24/watir-3-released/ Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Try to install SafariWatir Watir-Webdriver getting error message

2012-04-24 Thread Dan
I can confirm this about the command line tools. On Monday, April 23, 2012 3:18:04 PM UTC-4, Željko Filipin wrote: On Mon, Apr 23, 2012 at 9:11 PM, Joe Fl joeflec...@gmail.com wrote: I am trying to install safariwatir and watir-webdriver on a co-workers Mac Air. Xcode 4.3.2 has been

[wtr-general] Watir select_list options issue?

2012-04-24 Thread krizzo
I created this test script because I was having issues with another script that needed to work with select_list. This is having the same issue. From my understanding contents[0] should print out Firefox but instead I get a memory location. I printed the memory location out and it's not a

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread Dan
I'm not sure what you're trying to do exactly, but you need to tell it you're looking for the text puts contents[0].text You also may want to consider something like this instead of an array, but again I'm not really sure what you're trying to do. b.select_list(:name =

[wtr-general] Getting Hash value instead of actual link from email.

2012-04-24 Thread Bhavesh
Hi, Im trying to access links inside an email. Im am not using Gem “mail”. Im doing very simple stuff here. Just getting unread email from the mailbox and then getting the links present inside that email. When I try to get email bocdy, I get without error. But similarly when I try to get

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread Chuck van der Linden
select_list.options returns an object of type OptionCollection not an array It supports most of the methods you'd expect for an array in terms of simple navigation (.each, .first, [], .length, etc) so you can pretty much treat it as an array, but you can't (I'm pretty sure) assign it to an

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Chuck van der Linden
I see no watir in your code below, why are you posting this question here? On Tuesday, April 24, 2012 1:28:08 PM UTC-7, Bhavesh wrote: Hi, Im trying to access links inside an email. Im am not using Gem “mail”. Im doing very simple stuff here. Just getting unread email from the

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Chuck van der Linden
The mail gem has it's own google group, the link is in the readme look here: https://github.com/mikel/mail/ That would be the better place to ask your question On Tuesday, April 24, 2012 1:32:00 PM UTC-7, Chuck van der Linden wrote: I see no watir in your code below, why are you posting

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread krizzo
Interesting I was thrown off when it looked like some object instead of a simple array. In the documentationhttp://wiki.openqa.org/display/WTR/Selection+Boxes#SelectionBoxes-SelectionBoxMethodsit stated NOTE: contents will be an array which made me confused thanks for the clarification on

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread Chuck van der Linden
If you want to select a specific option, there's a much easier way. Just use the select_list's .select method b.select_list(:name = 'entry.6.single').select 'Chrome' On Tuesday, April 24, 2012 1:34:47 PM UTC-7, krizzo wrote: I wanted to get the list of options and then have it select one

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread Chuck van der Linden
Note that if it is a multi-select list you may want to clear all the selections first with the .clear method, before selecting the one(s) you want to be selected. On Tuesday, April 24, 2012 1:43:18 PM UTC-7, Chuck van der Linden wrote: If you want to select a specific option, there's a much

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Bhavesh
Yes, im doing this in watir. Instead of using mail gem, im using this method to retrive emails. I dont want to install gem mail. I need to know how to get values instead of these hash values. Bhavesh On Apr 24, 1:36 pm, Chuck van der Linden sqa...@gmail.com wrote: The mail gem has it's own

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread krizzo
Yeah that's what I'm doing only I wanted to program my script as if I didn't know what the value in the selection would be and wanted to select either the nth element in the list as this code does or check the values and pick one. contents = b.select_list(:xpath, LIST).options value =

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Chuck van der Linden
Then show us some example HTML and some code that is using watir that shows what you are trying to do. I have for example zero idea what mail system you are even trying to access, you've given us pretty much zero info other than the code you want to replace (which itself has very little info

[wtr-general] Re: Watir select_list options issue?

2012-04-24 Thread Chuck van der Linden
That would still be doing it the hard way.. b.select_list(:id = entry_6).options[1].select If you are not sure that there will always be a 1th element in the select list, you might want to check the .length first assert b.select_list(:id = entry_6).options.length = 3 b.select_list(:id

Re: [wtr-general] What step has to do to check all link a website use watir?

2012-04-24 Thread Dave McNulla
I agree with Chuck on this. The net/http is the quickest and easiest way to check for broken links. Be cautious about web pages that send nice message-type web pages instead of hard error code pages. Dave On Monday, April 23, 2012 3:14:58 PM UTC-7, Chuck van der Linden wrote: Or check this

[wtr-general] Re: watir webdriver and javascript drop down menu in IE

2012-04-24 Thread mndude
The link in the other thread to https://gist.github.com/1445418 leads in the direction I am wondering about. Since watir-webdriver is essentially wrapping the Selenium webdriver is there a way I can access the Action Builder as shown in that hover class mentioned in the link? I have used

[wtr-general] Re: watir webdriver and javascript drop down menu in IE

2012-04-24 Thread Chuck van der Linden
The gist you linked was doing just that sort of thing. I believe the underlaying Selenium driver object is present as 'driver' you see it being used in the gist. yesh the syntax would be horrible but it makes me wonder if we need to add something like a '.hover_then_click method that would

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Bhavesh
Hi Chuck, I don't expect people to write an code for me. I have already posted the code which i am using in my script in my first Post. Code is : outlook = WIN32OLE.new('Outlook.Application') mapi = outlook.GetNameSpace('MAPI') folders = mapi.Folders

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Chuck van der Linden
There is not a single line of code in what you provided below that is using Watir. Watir is Web Application Testing in Ruby, it is for driving web browsers and automating web applications. I have outlook open Outlook is a native application, not a web application. YOU CANNOT DRIVE

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Bhavesh
Hi chuck, You are still not getting me. Im am using Watir, and an webapplicaiton. From my application, i can send notification. Once notification is received in Outlook Inbox, i have to get the links in that emails. I automated using Watir till i can send the notification on an web

[wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-24 Thread Bhavesh
OK, i got the solution. I pattern matched the link text from the message body. After grabbing the link text, i can use it to navigate. So all ok now. Only thing if someone can help is, i got the email body but as same time i want to mark that email as read instead of unread, so that next