[wtr-general] Re: How to get the Scite editor's error message in a notepad?

2009-08-02 Thread infoDrone

You should be able to manually select the text with your mouse, then
just do a copy/paste.
If you mean programmatically then I don't know.

On Aug 1, 12:45 am, Prince3105  wrote:
> Hi i am a newbie to Watir,
>
> Just i want to collect the log messages from the Scite editor and save
> in a notepad.
>
> If any methods are available to do that please post.
>
> Thanks,
> Prince3105
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to get the Scite editor's error message in anotepad?

2009-08-02 Thread Rohan Ojha
Hi,

 

You can use the inbuilt logger method if you want to dump your error
messages in a notepad.

 


 

require 'watir'

require 'logger'

ie = Watir::IE.new

ie.goto('www.google.com')

log=Logger.new('c:/errorlog.txt')

if ie.text_field(:name,'q1').exists? then

 ie.text_field(:name,'q1').set('Log')

else

 log.error 'Text field with name q1 not found'

end

 

Hope this helps.

 

Thanks,

Rohan Ojha

 

-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com]
On Behalf Of Prince3105
Sent: Saturday, August 01, 2009 11:16 AM
To: Watir General
Subject: [wtr-general] How to get the Scite editor's error message in
anotepad?

 

 

Hi i am a newbie to Watir,

 

Just i want to collect the log messages from the Scite editor and save

in a notepad.

 

If any methods are available to do that please post.

 

 

Thanks,

Prince3105



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Can't click on an image link.

2009-08-02 Thread jane.liu

hi,james,
 use the following code for trying:

ie.image(:xpath,"//i...@src='="../
App_Themes/co/locationdrilldown_hollow.jpg']").click
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---