Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread mihai
nobody can help me?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] click link in iframe?

2007-06-07 Thread mihai
i have this html code:

table border=0 cellpadding=0 cellspacing=0 width=100%  
  tr
td colspan=2  class=PContent   style=background-color: #FF; 
  IFRAME src = 
/blz/bzaShowLibrary.do?caller=Librarymodules=StandardAnalyticsmodules=CustomAnalyticsmodules=MyWorkspacemodules=Subscriptions
 width = 100% height = 546 scrolling = no frameborder = 0 /IFRAME
/td
  /tr
  /table

this is a meniu with submenius links: Standard Analytics, Custom Analytics, My 
Workspace...

and can i click Standard Analytics for example in watir?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread Manish Sapariya
mihai wrote:
 nobody can help me?
   
Did you try solution posted by me?

reproduced here---

This should work.

ie.area(:href, /digit\(4\)/).click
For accessing the operators you will have to change the regexp and you 
are done.
---

-Manish


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


[Wtr-general] [firewatir] Fire_event not working in Firefox

2007-06-07 Thread jhun
I have this in my code:

lis = 
$browser.elements_by_xpath(//li);
lis.each do |li|
$logger.log(value:  + li.id);
if (li.id == d.id[4..10])
$logger.log(FOUND!!!);
*   
li.fire_event(ondblclick);*
break;
end
end

In bold text, doesnt seem to work. Can you please help me or i hope there's 
alternative to activate the ondblclick event. Thanks for the help!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread Manish Sapariya
This should work.

ie.area(:href, /digit\(4\)/).click
For accessing the operators you will have to change the regexp and you 
are done.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] forum do not get the postings made using the mailing list

2007-06-07 Thread Manish Sapariya
Hi All,
This particular mail is targeted to the admin of watir-general
forum on openqa.org. This may be known issue, but I observed that the 
postings
done using mailing list mail id, does not get reflected in the
forum and many user's are using just forum for discussing the
queries.

Is there any way to make sure that the postings do get copied
to forum?

Thanks and Regards,
Manish

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


[Wtr-general] Link description from file

2007-06-07 Thread John
Hi,

I have stored the link descriptions in a file to limit the maintenance efforts. 
I read the description from the file, store it in a variable and then click the 
link. When I use the whole link description, everything works fine:

[code]
link = www.example.com/contact.php
ie.link(:url, link).click
[/code]

But when I use a regular expression, then it doesn't work, because I think it 
is stored as a string:

[code]
link = /contact/
ie.link(:url, link).click
[/code]

How can I use regular expressions this way? Is there some string to regular 
expression conversion possibility?

Regards,
John

Message was edited by: jarkelen1
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Link description from file

2007-06-07 Thread

hi

try this :
link = contact
ie.link(:url, /#{link}/).click


2007/6/7, John [EMAIL PROTECTED]:


Hi,

I have stored the link descriptions in a file to limit the maintenance
efforts. I read the description from the file, store it in a variable and
then click the link. When I use the whole link description, everything works
fine:

[code]
link = www.example.com/contact.php
ie.link(:url, link).click
[/code]

But when I use a regular expression, then it doesn't work, because I think
it is stored as a string:

[code]
link = /contact/
ie.link(:url, link).click
[/code]

How can I use regular expressions this way? Is there some string to
regular expression conversion possibility?

Regards,
John

Message was edited by: jarkelen1
___
Wtr-general mailing list
Wtr-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

Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread mihai
that doesn't work
Error: undefined method `area' for #Watir::IE:0x2e02304 (NoMethodError)



watir code:
require 'watir'

#includes
include Watir

ie = IE.new

ie.goto( 'http://www.squarebox.co.uk/scalc.html' )
sleep(5)
ie.area(:href, /digit\(4\)/).click
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] run a javascript in html?

2007-06-07 Thread Manish Sapariya
I think watir 1.4 does not support map and area element.
Try watir 1.5.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] [firewatir] Fire_event not working in Firefox

2007-06-07 Thread Prema Arya

Hi Jhun,

Thanks for reporting this. You can use the latest code form svn/trunk at
http://firewatir.googlecode.com/svn/trunk/FireWatir/
We have already fixed this issue.
In case you face any problem let me know.

Regards,
Prema


On 6/7/07, jhun [EMAIL PROTECTED] wrote:


I have this in my code:

lis =
$browser.elements_by_xpath(//li);
lis.each do |li|
$logger.log(value:  +
li.id);
if (li.id == d.id[4..10])
$logger.log(FOUND!!!);

*   li.fire_event
(ondblclick);*
break;
end
end

In bold text, doesnt seem to work. Can you please help me or i hope
there's alternative to activate the ondblclick event. Thanks for the help!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general





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

Re: [Wtr-general] [firewatir] Fire_event not working in Firefox

2007-06-07 Thread jhun
i hope u could help me. Im in a rush. Thanks!!!
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] odd thing on comparing strings

2007-06-07 Thread reinier
Something odd here, or something foolish I simply miss;)

[CODE]
strTemp=browser.getEditbox(guiMap.getWindow('login').getObject('Login 
Editbox','','').getFysicalDescription())
strTemp2='[EMAIL PROTECTED]'
if (strTemp.eql?(strTemp2))
  puts('strings match')
else
  puts('string does not match')
end
if (browser.getEditbox(guiMap.getWindow('login').getObject('Login 
Editbox','','').getFysicalDescription().eql?('[EMAIL PROTECTED]')))
  puts('TESTCHECK: PASS correct value found in editbox')
else
  puts('TESTCHECK: FAIL incorrect value found in editbox')
end
[/CODE]

The first if statement returns strings match. which is correct, as they indeed 
do  match.
However the 2nd if statement returns the following error: 
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:1104:in 
`locate_input_element': undefined method `m
atches' for false:FalseClass (NoMethodError)
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:1091:in 
`each'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:1091:in 
`locate_input_element'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:3717:in 
`locate'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1164/./watir.rb:2412:in 
`assert_exists'
from (eval):2:in `getContents'
from ./Classes/CLBrowser.class.rb:338:in `getEditbox'

The odd thing about it, is that ther same values are compared with eachother.
Any ideas?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] forum do not get the postings made using the mailing list

2007-06-07 Thread Bret Pettichord
Manish Sapariya wrote:
 This particular mail is targeted to the admin of watir-general
 forum on openqa.org. This may be known issue, but I observed that the 
 postings
 done using mailing list mail id, does not get reflected in the
 forum and many user's are using just forum for discussing the
 queries.

 Is there any way to make sure that the postings do get copied
 to forum?
   
Thanks for the report. The admin of the openqa forums is Patrick 
Lightbody and he does not read this list. He can be contacted at 
[EMAIL PROTECTED]

Because of the increased traffic on this list and the ongoing troubles 
we have had keeping the forums and mailing list synchronized, I have 
been considering migrating watir-general to google groups. I would like 
to hear comments on this idea, as well as other suggestions.

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


Re: [Wtr-general] forum do not get the postings made using the mailing list

2007-06-07 Thread Chris McMahon
 Because of the increased traffic on this list and the ongoing troubles
 we have had keeping the forums and mailing list synchronized, I have
 been considering migrating watir-general to google groups. I would like
 to hear comments on this idea, as well as other suggestions.

+1
Now that I'm subscribed to selenium and selenium-rc groups also, I'm
really missing the yahoo/google config options that openqa doesn't
have.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Modal dialog

2007-06-07 Thread Bret Pettichord
Hayato wrote:
 Does anyone know how to resolve this issue? Please let me know.
   
Don't use threads. Blocking COM calls will block ALL ruby threads. 
You'll have to spawn code to run in a separate process instead.

Bret



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


Re: [Wtr-general] Modal dialog

2007-06-07 Thread Hayato Iriumi
Yeah, that's what I was thinking of in my dream. LOL
Thanks for your advice, Bret. :-)

On 6/7/07, Bret Pettichord [EMAIL PROTECTED] wrote:
 Hayato wrote:
  Does anyone know how to resolve this issue? Please let me know.
 
 Don't use threads. Blocking COM calls will block ALL ruby threads.
 You'll have to spawn code to run in a separate process instead.

 Bret



 ___
 Wtr-general mailing list
 Wtr-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


Re: [Wtr-general] not able to click ok for the pop up , after a selection from select lis

2007-06-07 Thread matt
It may be a general winClicker issue.  I found that in order to get the 
winClicker to work, the getWindowHandle() had to perform an exact match.  This 
is because many of the IE windows had the same Microsoft Internet Explorer 
text in the title.  As a result, the incorrect window handle was returned. And 
no ok button was present.  The behavior that resulted was that the javascript 
popup window would not dismiss.

winClicker.rb, line 236
  ### MCB 3/7/2007 *exact match*
  if title == textCaption[1].to_s

This worked for me :-)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-07 Thread Chris McMahon
On 6/7/07, Norris [EMAIL PROTECTED] wrote:
 Hi,

 I'm currently having trouble selecting a list box item, any solutions?

 For example, I'm trying to select the Quantity from the attached Gap site, 
 but I can't.

 http://www.gap.com/browse/product.do?cid=7389pid=453549

I hope Charley answers this.  Firefox DOM Inspector doesn't recognize
that Quantity box.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-07 Thread Norris
Hi, 

I'm currently having trouble selecting a list box item, any solutions?

For example, I'm trying to select the Quantity from the attached Gap site, but 
I can't. 

http://www.gap.com/browse/product.do?cid=7389pid=453549

Any suggestions will help.  Thanks in advance.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Trouble selecting list box item - Any suggestions??

2007-06-07 Thread Norris
Thanks for trying.  I can't do it with explorer either.  Anyone else?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-07 Thread Charley Baker

Norris,

 This will work with Watir 1.5:
ie.select_list(:id, 'qtyDropDown').option(:value, '5').select

Send me an email, I'm curious to hear what you guys are doing and glad to
see you coming out to mailing lists.

-Charley



On 6/7/07, Chris McMahon [EMAIL PROTECTED] wrote:


On 6/7/07, Norris [EMAIL PROTECTED] wrote:
 Hi,

 I'm currently having trouble selecting a list box item, any solutions?

 For example, I'm trying to select the Quantity from the attached Gap
site, but I can't.

 http://www.gap.com/browse/product.do?cid=7389pid=453549

I hope Charley answers this.  Firefox DOM Inspector doesn't recognize
that Quantity box.
___
Wtr-general mailing list
Wtr-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

Re: [Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-07 Thread Norris
Hi Charley, 

I don't think Watir 1.5 is out yet.  What email address can I reach you at?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] forum do not get the postings made using themailing list

2007-06-07 Thread Jason Darling
Bret, +2.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris McMahon
Sent: Thursday, June 07, 2007 12:19 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] forum do not get the postings made using
themailing list


 Because of the increased traffic on this list and the ongoing troubles
 we have had keeping the forums and mailing list synchronized, I have
 been considering migrating watir-general to google groups. I would like
 to hear comments on this idea, as well as other suggestions.

+1
Now that I'm subscribed to selenium and selenium-rc groups also, I'm
really missing the yahoo/google config options that openqa doesn't
have.
___
Wtr-general mailing list
Wtr-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


Re: [Wtr-general] To view the message send based on ID created.

2007-06-07 Thread sapna
Hi,

I think this [ie.link(:href, /id=1274/).click] will help me out but I have 
another question for this as the id created is dynamic it keep changing for 
every new transaction. So I need to make transaction and navigate to message 
page click on the Bill Payment Inquiry link based on the current ID created. So 
how do I fetch the ID.

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


[Wtr-general] To click on the text link which is the combination of number and text

2007-06-07 Thread sapna
Hi,

I had posted this question earlier but could not get any answere to this. I 
need to click on the text link which has combination of number and text. It 
looks like
pWelcome, you have a href=/AppsUIWeb/SelfService/Messages.aspx2 new 
messages/a./p.  The number is actually the total count of messages received 
so number keep changing how can I handle this.

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


[Wtr-general] How to capture mail box icon

2007-06-07 Thread sapna
Hi,

Help me understand how to do this. I need to capture mail box icon and want to 
verify whether the mail box is open or closed. Kindly treat this as high 
priority.

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


Re: [Wtr-general] To click on the text link which is the combination of number and text

2007-06-07 Thread sandeep
Let me know if  this works
ie.link(:text, /[0-9]+ new messages/).click
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] To click on the text link which is the combination of number and text

2007-06-07 Thread sapna
Thanks Sandeep
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Fetching Today's date in the mm/dd/yyyy

2007-06-07 Thread sapna
Thank you...
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to get the all the content of list box into variable

2007-06-07 Thread sapna
Thank you.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to give the next line b/w the sentences for window text.

2007-06-07 Thread sapna
Thank u...
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Trouble selecting list box item - Any suggestions

2007-06-07 Thread Norris
Thanks Charley.  This worked.  In addition, do you know how I can select the 
size of the waist and length?  Thanks in advance.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general