Re: [Wtr-general] How do I access caption generated through third party libraries?

2006-06-16 Thread Angrez Singh
Hi,Please don't post the question again with different subject. Just a thought.Regards,AngrezOn 6/16/06, Amitha Shetty 
[EMAIL PROTECTED] wrote:Hi,   How do I access caption generated through third party libraries?
  I see a screen withcheckboxes(in a tree strucuture) and labels beside the checkboxes. Developers are using third party libraries(_javascript_s) to generate these checkboxes and they are placing a label beside the checkbox.
When I do a view source on this page I see the following code which has the actual label(Male).var a = new Array; a[0] = new Array; a[0]['id'] = '1'  
a[0]['checkboxName'] =''ID_1''a[0]['caption'] = 'Male'(#This is the data I want to retrieve)  a[0]['isOpen'] = truea[0]['children'] = new Array;a[0]['children'][0] = new Array;a[0]['children'][0]['id']='2'; 
a[0]['children'][0]['caption']=''Female';a[0]['children'][0]['checkboxName']='ID_2';  but when I say   ie.checkboxes[1].name , it returns the text ID_1. 
 But I am interested in the caption of the checkbox i.e MaleHow do I retrieve this caption?Third party libraries used for generating the checkboxes:  
script type=text/_javascript_ src="">script type=text/_javascript_ src="">script type=text/_javascript_ src=""
script type=text/_javascript_ src="">script type=text/_javascript_ src="">
  Thanks,  Amitha 
	

	
		 
 Yahoo! India Answers: Share what you know. Learn something new 
Click here 
Send free SMS to your Friends on Mobile from your Yahoo! Messenger 
Download now
___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] CVS download

2006-06-16 Thread Adrian Rutter

CVS download

I've downloaded TortoiseCVS, and I wondered if someone could give me the
parameters I need:

cvsRoot
protocol
server
port
repository folder
user name
module

thanks

aidy



---
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] CVS download

2006-06-16 Thread Zeljko Filipin
You have to downoload TortoiseSVN (not TortoiseCVS) from http://sourceforge.net/project/showfiles.php?group_id=138498package_id=151948
Install it.Create new folder.Right click it.Select SVN Checkout... from context menu.At URL of repository enter http://svn.openqa.org/svn/watir/trunk
Click button OK.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Understanding WATIR

2006-06-16 Thread Manish Sapariya

Hi David,
Yes, you are right. it gave me access to all elements in page, as I was 
expecting.


However when the page has multiple frames, I have to qualify frames 
explicitly,

in order to access all the elements. e.g.
$ie.frame(:name, 'mainFrame').text_fields.length

There is one more exception, I am not sure whether this is know issues 
or not,
but I had to explicitly address the element I wanted to click on. Again 
its the pages

with multiple frames.
Please find attached the zip containing html pages.

Following is my ruby session with comments:
---
$ie.goto(file://E:/Me/Work/Temp/build/ReLogin.do.htm)
2.093
$ie.frame(:name, 'mainFrame').divs.length
15
$ie.frame(:name, 'mainFrame').div(:text, Add DHCP Server).exists?
true
##exists? says the element is presetn, but clicking it does not help
$ie.frame(:name, 'mainFrame').div(:text, Add DHCP Server).click
##neither it can flash it..just in case I thought it might...
$ie.frame(:name, 'mainFrame').div(:text, Add DHCP Server).flash


##However following method access the expected element correctly
$ie.frame(:name, mainFrame).table(:id, /tblMain/i).cells[1].div(:id, 
'addusers').div(:text, Add DHCP Server).click

Cannot find server or DNS Error
$ie.frame(:name, mainFrame).table(:id, /tblMain/i).cells[1].div(:id, 
'addusers').div(:text, Add DHCP Server).flash

-
I have the work around, but I was expecting following to work.
$ie.frame(:name, mainFrame).div(:text, Add DHCP Server).flash

Thanks and Regards,
Manish

David Schmidt wrote:
Actually, that *is* supported.  However, if you look a sample HTML 
INPUT element from a page I'm scraping you'll find a clue why that 
particular example didn't work:


INPUT  id=SSNEntry_txtSpouseSSN style=\WIDTH: 95px\ value=999 
name=SSNEntry:txtSpouseSSN


For text_fields, the current text in the field is contained in the 
value attribute.  Thus:


ie.text_field( :value, 'xyz' )

Should work for you.

David

  




build.rar
Description: Binary data
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can I access caption attribute of a checkbox?

2006-06-16 Thread Bret Pettichord
On 6/15/06, Amitha Shetty [EMAIL PROTECTED] wrote:
Is there way to access the html generated this way?ie.html will show you the generated html.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] JS pop-up trouble, new methods in 1.5.1?

2006-06-16 Thread Adam Reed
I have one test that generates a Javascript OK pop-up window that I am
unable to close.

I have attempted both methods from
http://wiki.openqa.org/display/WTR/FAQ to close this window. 

When using the startClicker method, when the JS pop-up triggers, you can
see it lose focus as if startClicker has clicked, just not in the
correct place.  I found a posting from another Watir user back in
February having the same problem and unfortunately he did not receive
feedback from other users or a resolution.  The code in both of our test
cases is verbatim from the FAQ.

During my searches for a solution, I also noticed a lot of talk about
the 1.5.1 release including some new accepted method for addressing JS
functions, but I haven't been able to find out specifically what that
is.  Is there a new approach I should know about?
 
Thanks in advance,
 
Adam Reed

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] very neat trick with Ruby system() (or any otherlanguage on Windows)

2006-06-16 Thread Bret Pettichord
On 6/15/06, David Schmidt [EMAIL PROTECTED] wrote:

Bret,The current method is quite a bit different than the method that Iwrote, and I'm not sure it will be as flexible.(For example, you can'tattach to a Frame the way you can to an IE or Modal window.)My method
is designed to completely re-create the exact method string to get backto the element to be clicked, and is working well for me right now,though there are some inconsistencies with table related elements (which
is what got me looking at our current container/collection issue).Right. The method in trunk handles click_no_wait in all watir objects except frames. It is impervious to how we've implemented support for most controls and therefore is unaffected by the issues you've raised with table elements. To my thinking, that makes this code more flexible than what is in the modal_dialog branch. We just need to add support for frames.
It's probably just two lines of code. I guess i can do it if you are uncomfortable with this approach.
It's at 
https://svn.openqa.org/svn/watir/branches/modal_dialog/watir andI'm doing lots of click_no_wait's from within frames.Feel free tocontact me if you have questions about the code in that branch as it'spretty much my branch right now and it's probably a dead end until it's
decided to port that code to the current trunk.What do we have in there that isn't already in trunk, other than the frame/click_no_wait support?Bret

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] [ wtr-Bugs-4791 ] getLink fails at some pages

2006-06-16 Thread noreply
Bugs item #4791, was opened at 2006-06-17 03:00
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detailatid=487aid=4791group_id=104

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Miroslav Skultety (misky)
Assigned to: Nobody (None)
Summary: getLink fails at some pages

Initial Comment:
When trying to click on the About link in a web page using something like
ie.link(:text, 'About').click
I got the attached error. With other web pages and the same MSIE the method 
worked. I have Watir gem 1.4.1 on Win2K mswin Ruby.


WIN32OLERuntimeError: tags
OLE error code:80020003 in Unknown
  No Description
HRESULT error code:0x80020003
  Member not found.
c:/programs/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:899:in 
`method_missing'
c:/programs/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:899:in 
`getLink'
c:/programs/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:2831:in 
`initialize'
c:/programs/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:570:in `new'
c:/programs/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:570:in `link'
C:/dev/rubys/testing/watir/funtest.rb:30:in `anonymous_browsing'
C:/dev/rubys/testing/watir/funtest.rb:16:in `test_scenarios'

--

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detailatid=487aid=4791group_id=104
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general