[Wtr-general] How to pick the last word in the sentence

2007-07-09 Thread sapna
Hi All,

Pleas can you help me finding out the last word in the sentence displayed on 
the web page. Have look at the HTML snippet.

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


[Wtr-general] Can we display images using puts

2007-06-20 Thread sapna
Hi,

Can we display images in the output using puts?

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


[Wtr-general] Is there any script to click on the image icon

2007-06-19 Thread sapna
Hi,

Kindly let me know if there are any command to click on the image. Below the 
HTML snippet.

a href=/AppsUIWeb/Transfers/TransferInquiry.aspx?type=singleid=895img 
height=15 width=15 src=/AppsUIWeb/themes/toptabmenu/images/mailclosed.gif 
//a

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


[Wtr-general] Want to display data in the same row using Puts

2007-06-13 Thread sapna
Hi,

I want display data in the same row using puts. For the reference see below. 
Thanks in advance.

puts {a[4][1]):{a[4][2]} -- This is not working but. Tell me how to put this 
value.

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


[Wtr-general] Need to fetch the ID

2007-06-11 Thread sapna
Hi,

I had posted this question earlier but did not get any information. So wanted 
to put the question again. Need help on this. Below is the HTML code. 

1 I want to check whether the mail is read or unread depending on the mail 
icon(first line of HTML)
2 Want to fetch the id generated (id=1303) depending on which I will click on 
the message link and that would take me to read message window.

img src=/AppsUIWeb/Themes/TopTabMenu/Images/mailopen.gifnbsp;6/8/2007
/tdtd
a 
href=/AppsUIWeb/SelfService/MessageDetail.aspx?id=1303messageToUser=TrueRE: 
Check Copy Request/a
/tdtd

Thanks in advance.

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


Re: [Wtr-general] How to capture mail box icon

2007-06-11 Thread sapna
Can u guid me how to use this code. I need to check if it is opened/closed and 
then open the closed mail.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Need to fetch the ID

2007-06-11 Thread sapna
Hi Zeljko,

I have a quesion on the code you sent me. Kindly find the question below the 
code.

This will extract 1303.

irb m = /id=(1303)/.match(ie.link(:text, RE: Check Copy Request).href)
= #MatchData:0x2d147b8

Q: Here I mention the id but I want to fetch automatically because the id keep 
changing for every message replied. Hope my explaination is fine.

irb m[1]
= 1303
___
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 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] To view the message send based on ID created.

2007-06-05 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 view the message send based on ID created.

2007-06-04 Thread sapna
Hi,

Need your kind help for the below problem.


In the application there's option to send query. After the query is made the 
same is displayed in different web page as n rows 2 columns in Date and subject 
fromate. Now I need to select the message under subject column the one I had 
sent. I saw in the view source there is ID been created for it can I select it 
based on the id created or is there any othe way of doing this. Give me an idea 
how to implement in the WATIR script.


Regards
Sapna
___
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-04 Thread sapna
I don't know if this would help you out in figuring out the my problem. Please 
let me  know.

a 
href=/AppsUIWeb/SelfService/MessageDetail.aspx?id=1274messageToUser=FalseBill
 Payment Inquiry/a
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


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

2007-05-30 Thread sapna
Hi,

Can you tell me how to fetch today's date and decrement month or day or year. 
This is basically to test the functionality of date which must be today or in 
the past.


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


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

2007-05-29 Thread sapna
Hi,
This is Sapna, Kindly help me out with the problem below. There are code 
written for testing window text and compair with the actual one. In the 
application the first line of the text is what I need to compair but will take 
all the 3 lines so had to put all the lines in the win_text1 variable. Please 
let me know if it can select only the first line or let me know by selecting 
all the lines how to put each sentence in the next line.  


win_text1= *'Line1: Your Account Preferences have been updated**.

  Line 2: Make more changes.

  Line 3: View account summary page.'


a=$ie.table(:index, 4)
puts a[1][2]
assert_equal(win_text1, a[1][1].to_s, 'Manage Account Preferences, 
Windows text1 is mismatching with the Actual')



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


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

2007-05-29 Thread sapna
Hi.

Please let me know how to store in a variable the content of the list box and 
use that variable to compaire with the default value.

Regards
Sapna
___
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-05-29 Thread sapna
pYour Account Preferences have been updated.br/br/Make a 
href=/AppsUIWeb/SelfService/ManageAccountPreferences.aspxmore 
changes/a.br/View a href=/AppsUIWeb/Accounts/Summary.aspxaccount 
summary page/a./p
___
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-05-29 Thread sapna
Thanks a lot Zeljko that's exactly I wanted and It's working for me.
___
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-05-29 Thread sapna
Thanks a lot Zeljko this is what I was looking for.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general