Hi,
Sorry my fault for not telling the correct way to get REXML. You can
download the Development [zip] which will download rexml_3.1.6.zip to your
machine. Unzip and run 'install.rb' file. Then try the code with comma
included.
Regards,
Angrez
On 3/30/07, rkkanneganti [EMAIL PROTECTED] wrote:
hi angrez
following is the step by step of the code being executed
## Opening the Mail.Yahoo.com site
## Login and Password Entered
## Checking the mail box
## Selecting the First Mail
## Clicking the Mark Button
## Finished clicking the Mark Button -- Till here everything is working
Hi,
Can you replace your functions.rb file in [ruby installation
dir]/blib/ruby/1.8/site_ruby/rexml/ with the one that is attached and try
the code again.
Regards,
Angrez
On 3/30/07, rkkanneganti [EMAIL PROTECTED] wrote:
hi angrez
following is the step by step of the code being executed
##
hi angrez
looks like the bad luck is still continuing. I had copied your functions.rb
attachment. In my system the path was like this c:\ruby\lib\ruby\1.8\rexml\
## Opening the Mail.Yahoo.com site
## Login and Password Entered
## Checking the mail box
## Selecting the First Mail
## Clicking the
Hi,
looks like the bad luck is still continuing. I had copied your
functions.rbattachment. In my system the path was like this
c:\ruby\lib\ruby\1.8\rexml\
:) .. .it happens, can you just send the code or the test case you are
using. I'll try running it here on my machine.
Will solve this
hi angrez
here is the full code which i was using
require 'watir'
require 'test/unit'
include Watir
class TC_mail_yahoo_check Test::Unit::TestCase
puts ## Opening the Mail.Yahoo.com site
sleep 1
ie = IE.new
ie.goto(http://mail.yahoo.com;)
ie.maximize()
puts ## Login and Password Entered
I was a silly mistake,
typo ,:-)
It was a silly mistake.
- Angrez
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi,
I was a silly mistake,
tarted
# select element that has text Mark as Read
#element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read'))
ie.element_by_xpath(//li[contains(.,'Mark as Read')])
I gave you the correct code to select the element but you are not assigning
it to any
hi angrz
Thank you for the patience and support in rectifying the code. yup that was a
silly mistake :) blindly followed the previous code. Here is the full code
which is perfectly working now.
thanks
require 'watir'
require 'test/unit'
include Watir
class TC_mail_yahoo_check
hi angrez
Thank you for the patience and support in rectifying the code. Here is the full
code which is working now without any problem.
thanks
require 'watir'
require 'test/unit'
include Watir
class TC_mail_yahoo_check Test::Unit::TestCase
puts ## Opening the Mail.Yahoo.com site
ie =
Hi angrez,
HOW THE CODE WILL PICK THE MARK AS READ AND CLICKS IT..
//
I think the code usage is not correct.
element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read'))
**its ie.element_by_xpath(//li[contains(.'Mark as Read')])** //
PICKED THE CODE FROM THIS FORUM TO CHECK HOW THE
Hi angrez,
HOW THE CODE WILL PICK THE MARK AS READ AND CLICKS IT..
//
I think the code usage is not correct.
element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read'))
its ie.element_by_xpath(//li[contains(.'Mark as Read')]) //
PICKED THE CODE FROM THIS FORUM TO CHECK HOW THE
Hi,
I uses XPath to get the element. Actually if you see the HTML the Mark as
Read is an LI element for which I think there is no class in watir. One way
is to create you own class inheriting for Element class. Other way is to
find the element and click it.
Did you tried the code that I sent in
hi angrez
I made changes to the code as you said.. and i am getting this exception
wrong number of arguments (1 for 2) - after the element part has started.
thanks
___
Wtr-general mailing list
Wtr-general@rubyforge.org
hi,
can you send me the line which is giving this error? I didn't got even a
single error on my machine using this script
Regards,
Angrez
On 3/29/07, rkkanneganti [EMAIL PROTECTED] wrote:
hi angrez
I made changes to the code as you said.. and i am getting this exception
wrong number of
hi angrez i am resending you the code with the comments in the last 10 lines.
As i am new to watir i am not able to catch the line where the exception is
comming.
require 'watir'
require 'test/unit'
include Watir
class TC_mail_yahoo_check Test::Unit::TestCase
puts ## Opening the
Hi,
ie.element_by_xpath(//li[contains(.'Mark as
Read')])## New code provided by you
I think you are missing a comma (,) between dot (.) and Mark as Read or is
it a typo.
Regards,
Angrez
___
Wtr-general mailing list
hi angrez
when the comma is kept before Mark as Read i am getting the following error
undefined method `include?' for nil:NilClass
Thanks
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi,
Please provide enough information while sending the error.
Can you just try installing latest version of REXML (http://
www.germane-software.com/software/*rexml*/)?
Regards,
Angrez
On 3/30/07, rkkanneganti [EMAIL PROTECTED] wrote:
hi angrez
when the comma is kept before Mark as Read
hi angrez
puts ## Element started
# select element that has text Mark as Read
#element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read'))
ie.element_by_xpath(//li[contains(.,'Mark as Read')])
- if comma(,) is included exception (undefined method `include?' for
when i called the test case ie yahoo mail mark the first file, i am getting the
exception or error as
undefied method 'element' for nil:NilClass NoMethodError
can someone through some light on it. appreciatable
___
Wtr-general mailing list
hi,
Can you just let me know the script that you are using and the watir
version?
- Angrez
On 3/28/07, rkkanneganti [EMAIL PROTECTED] wrote:
when i called the test case ie yahoo mail mark the first file, i am
getting the exception or error as
undefied method 'element' for nil:NilClass
hi angrez the following is the script and the version i am using is watir
1.5.1.1158.gem
require 'watir'
include Watir
require 'test/unit'
class TC_mail_yahoo_check Test::Unit::TestCase
puts ## Opening the Mail.Yahoo.com site
sleep 1
ie = IE.new
ie.goto(http://mail.yahoo.com;)
ie.maximize()
Hi,
I think the code usage is not correct.
element = ie.element_by_xpath(//lihttp://contains(.,'Mark as Read'))
its ie.element_by_xpath(//li[contains(.'Mark as Read')])
# Print properties of the element just to make sure you selected correct
element.
Is this comment on single line?
Does the above said mail.yahoo.com case is working properly ie..Does Mark as
Read is getting clicking.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
, 2007 6:32 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Unable to select the button from button-menu
Does the above said mail.yahoo.com case is working properly ie..Does Mark as
Read is getting clicking.
___
Wtr-general mailing list
Wtr-general
@rubyforge.org
Subject: Re: [Wtr-general] Unable to select the button from button-menu
Does the above said mail.yahoo.com case is working properly ie..Does Mark
as
Read is getting clicking.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http
]
[mailto:[EMAIL PROTECTED] On Behalf Of Angrez Singh
Sent: Tuesday, March 27, 2007 7:08 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
The above code works on my machine. It certainly marks the message as read
or unread.
Can you
PROTECTED] *On Behalf Of *Angrez Singh
*Sent:* Tuesday, March 27, 2007 7:08 PM
*To:* wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
The above code works on my machine. It certainly marks the message as read
or unread.
Can you try
Sent: Tuesday, March 27, 2007 7:33 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
The code written in watir 1.4.1 should work with watir 1.5. You install the
latest gem and try the code there. Let me know what problems you face
*
--
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*On Behalf Of *Angrez Singh
*Sent:* Tuesday, March 27, 2007 7:08 PM
*To:* wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
The above code works on my machine. It certainly marks
Sent: Friday, March 23, 2007 11:06 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
Just looked at the Yahoo mail app (not the beta one) and had a look at the
HTML. The options that you are trying to select like Mark as Read
PROTECTED] *On Behalf Of *Angrez Singh
*Sent:* Friday, March 23, 2007 11:06 AM
*To:* wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
Just looked at the Yahoo mail app (not the beta one) and had a look at the
HTML. The options that you
I think element_by_xpath is only in watir 1.5, hence the error message (you
have watir 1.4).
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
: Re: [Wtr-general] Unable to select the button from button-menu
Hi,
Sorry forgot to mention the watir version. You should use watir 1.5.x
(latest version for this to work). XPath functionality is added after watir
1.4.1 is released. So its not there in 1.4.1. Uninstally the current
version
/MongoMain.rb:23
Thanks in advance,
Mathew
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*On Behalf Of *Angrez Singh
*Sent:* Friday, March 23, 2007 11:06 AM
*To:* wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] Unable to select the button from button-menu
Hi Mathew,
Just
-30516346,
Mobile:+91-9945849925*
--
*From:* Angrez Singh [mailto:[EMAIL PROTECTED]
*Sent:* Friday, March 23, 2007 4:57 PM
*To:* Mathew Jacob; wtr-general@rubyforge.org
*Subject:* Re: [Wtr-general] Unable to select the button from button-menu
Hi,
Sorry forgot to mention
Hi,
I am unable to select the button from the button-menu. Following is the
scenario. Please help me to resolve this issue.
Scenario:
In Yahoo Mail, Inbox folder(Click on Inbox), there exists a buttonmenu
dropdown “Mark”. It has two options “Mark as Read” and “Mark as
Unread”.
Hi Mathew,
Just looked at the Yahoo mail app (not the beta one) and had a look at the
HTML. The options that you are trying to select like Mark as Read, Mark
as Unread are in li tags. So you need to access them using xpath and then
fire click event. Following code works for me for marking first
39 matches
Mail list logo