Re: [Wtr-general] Help using Screen Capture

2006-04-01 Thread Atilla Ozgur
Can you try sending down key via autoit then capturing screen. I am not whether there is an auto scroll feature that > exists in Watir...Can someone please let me know?? > > > ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org

Re: [Wtr-general] WindowHelper

2006-02-10 Thread Atilla Ozgur
As I know it does not accept regular expressions . It should be a good enhancement to do so. I will look at it in the weekend. On 2/8/06, Terry Peppers <[EMAIL PROTECTED]> wrote: > I asked a real foolish question a couple of weeks ago with regard to how you > can get Watir to enter in username and

Re: [Wtr-general] Question on clicking on link

2006-01-29 Thread Atilla Ozgur
1.You may try to add this site to your trusted sites 2.You may try to add this site to your .hosts file On 1/25/06, Chris Schmechel <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, it got me thinking. I found the problem: > > ie.link(:url, "download.html").click > > needs to become: > > ie.

Re: [Wtr-general] Automate a third-party plugin toolbar in IE?

2006-01-26 Thread Atilla Ozgur
do you have an API for third-party plugin toolbar? If it has one, it may be possible. On 1/26/06, Chris Schmechel <[EMAIL PROTECTED]> wrote: > > Is it possible to automate a third-party plugin toolbar in the IE browser? > I want to > directly access the toolbar menus and the various lists to valid

Re: [Wtr-general] close all IE windows

2006-01-24 Thread Atilla Ozgur
Problem is IE is also works as File Explorer. Attach code does not work with file explorer behaviour. If your IE with invalid web address is a file explorer window you can not do that. As I understand from error, it may not be possible to do that On 1/24/06, Richard Lawrence <[EMAIL PROTECTED]> wr

Re: [Wtr-general] Read In from external file

2006-01-10 Thread Atilla Ozgur
since watir uses ruby for scripting, you can do that. Look for this page. http://www.rubycentral.com/book/tut_io.html but a simple example aFile = File.new("testfile.txt") aFile.each_line {|line| puts "Got #{line.dump}" vars = line.split(",") city = vars[0] state = vars[1] postal_code = vars

Re: [Wtr-general] (no subject)

2005-12-28 Thread Atilla Ozgur
What do you mean by "catching the navigation exception or other system exception." On 12/28/05, Asmita Srivastava <[EMAIL PROTECTED]> wrote: > Hi, > > We are trying to use Watir for testing our application and there are two > majar issues we are facing at present. > First one is in catching the na

[Wtr-general] Conference Inet-tr

2005-10-22 Thread Atilla Ozgur
I have sent two articles about watir to inet-tr conference. Which is one of the most prestigious Internet Conferences of Turkey. Both were accepted. First one is fairly simple only an introduction to Watir. Second one shows how you can use watir for Sql Injection attacks. I hope that these article

Re: [Wtr-general] Selecting a row in an Infragistics Ultragrid

2005-10-10 Thread Atilla Ozgur
I do not understand what you need fully. But could you learn which name your developer has given to this asp.net control. Asp.Net and infragistic controls creates their names according to this name. Since html enforces that every ID must be unique in a html page. In a grid. When you give id to data

[Wtr-general] Understanding ruby symbols, difference between :id and "id"

2005-10-09 Thread Atilla Ozgur
I am trying to learn more about ruby on rails and find this article in the web. This is pretty much ruby specific. Symbols are used in watir library very heavily. Look for this post and its comments. It may help you to understand ruby symbols better. http://glu.ttono.us/articles/2005/08/19/underst

Re: [Wtr-general] Selecting a row in an Infragistics Ultragrid

2005-10-08 Thread Atilla Ozgur
Could you give us some example html infragristic creates. As I remember, Infragristic controls creates a lot of html. Even simple textbox controls have something like. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/m

Re: [Wtr-general] How to use the log4r.rb

2005-10-02 Thread Atilla Ozgur
Did you try samples which comes with one click installer, in mymachine they are in the folder.C:\ruby\samples\log4r-1.0.5\examplesC:\ruby\samples\log4r-1.0.5\examples\logs As I know log4r is already installed with one click installer, you donot need to download it from sourceforge. Try these ex

Re: [Wtr-general] check what's the content of this certain text

2005-09-14 Thread Atilla Ozgur
put textsearch.html to 1-25/25 puts pagecontainstext_test.rb def test_match_regexp_found2 $~ = $ie.contains_text(/\/25/) assert_equal('/25', $&) end def test_match_regexp_found3 $~ = $ie.contains_text(/(\/25)/) assert_equal('/25', $1) end thes

Re: [Wtr-general] check what's the content of this certain text

2005-09-13 Thread Atilla Ozgur
parantheses gives you what is matched. for example you have something like this. (\d\d)-(\d) if this expression matches to 25-1 $1 gives you 25, $2 gives you 1. Since you have not parantheses in your regular expression, ruby gives you nil. You find that string but do not parse it correctly. in your

[Wtr-general] watir features

2005-09-12 Thread Atilla Ozgur
I am writing an article about watir to Internet in Turkey Conference, inet-tr http://cyberchair.inet-tr.org.tr/ I want to list features of watir, in this article. Below is the list of features. If you see a feature i forget to add or feature I added is wrong please inform me. I would be grateful.

Re: [Wtr-general] check what's the content of this certain text

2005-09-12 Thread Atilla Ozgur
try regular expressions? \d-\d\\\d \d matches digits. assert($ie.contains_text(/\d-\d\\\d/)) this should match 1-1\1 to 9-9\9 but if you reports will have more than one digit, you should use. \d\d to match two digits. Hope it will be usefull. On 9/12/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: [Wtr-general] Key / value pairs.

2005-08-29 Thread Atilla Ozgur
I think this question answered before. You can search archives. But I added this to wiki FAQ. I also give wiki text here. Q. What I'd like to do, is to have a configuration file (eg. config.txt), which would have a number of key/value pairs, such as "UserName=user", which would be read by a test s

Re: [Wtr-general] (possibly) Introducing WatirMaker

2005-07-27 Thread Atilla Ozgur
I would like to look at it as my day time job is .Net developer. But I took a 3 months contract with microsoft, as a consultant in Turkey. My current company rents (is this correct use) me to microsoft. Therefore I do not know, if I will have a time for it. ___

Re: [Wtr-general] id

2005-07-21 Thread Atilla Ozgur
Also your developer override naming of these identifiers. But i do not think he will want to do that. these should be Also your can developer override naming of these identifiers. But i do not think he will want to do that. protected void ctlDataGrid_RowDataBound(object sender, GridViewR

Re: [Wtr-general] id

2005-07-21 Thread Atilla Ozgur
What object do your developer use? If you use stand alone object inasp.net, you can give an ID to it. But if you use an object inside ancontainer like DataGrid,DataList, Repeater or GridView( Asp.Net 2.0).Asp.Net automatically gives and ID to them since an ID in a html pagemust be unique. For e

Re: [Wtr-general] max number of concurrent threads/ie browser spawned

2005-07-20 Thread Atilla Ozgur
I think this was discussed before, it is not about Watir but internet explorer. Some people saw 30+ while others saw 40+. I think it is about how much RAM and CPU internet explorer , therefore your tests need. If that is true then, those who test image heavy web sites wouldn't be able to launch a l

Re: [Wtr-general] reg the execution of multiple test cases concuttentlly

2005-07-20 Thread Atilla Ozgur
currentFolder = 'D:\\Projects\\Trial\\WatirTests' Dir.chdir(currentFolder) paths = Dir.entries(currentFolder) paths.each{|f| # I do not want to execute my subversion folder files and my common functions if (f =~ /.rb/ && f != 'CommonFunctions.rb') # for debugging purp

Re: [Wtr-general] Extract/Parse String?

2005-07-06 Thread Atilla Ozgur
c = '' c =~ %r{name=(\w+\d+)} puts $1 c =~ %r{name=([A-Za-z]+)([0-9]+)} puts $1 puts $2 I hope this is what you need. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general