[wtr-general] Re: Modal Dialog not found

2010-01-11 Thread maven999
isn't a "modal_dialog" but rather a div, a lightbox or > something similar. Try using IE dev toolbar or Firebug to recognize it and > work with the div. > > -c > > On Mon, Jan 11, 2010 at 1:31 PM, maven999 wrote: > > > I should point out that while the wind

[wtr-general] Re: Modal Dialog not found

2010-01-11 Thread maven999
I should point out that while the window's main div (dijit_Dialog_0) has no title, the inner html tag within it (dijitDialogTitleBar) does have a title. Using this title still gives me a 'Modal Dialog not found' error. Any help is appreciated, thanks! On Jan 11, 12:02 pm, maven9

[wtr-general] Modal Dialog not found

2010-01-11 Thread maven999
Hi, I have a dojo dialog box (to search for a customer) that pops up when I click on a button on the main window. I have tried all methods to locate it, but none of them worked. The source of the dialog box is: Account Search x I tried the

[wtr-general] How to wait until onclick method has executed?

2009-02-04 Thread maven999
Hi, I have a test that enters some info (date, time, etc) and then clicks a 'Modify' button. The html code for the Modify button is (the text on the button is 'Modify'): My Watir test code to simulate this clicking is: $ie.button(:value, 'Modify').fire_event('onclick') The button gets clicke

[wtr-general] Re: Extension for testing flash applications with Watir

2008-12-19 Thread maven999
Hi Sai, Great effort! Can you tell me if I can test different types of Flash apps with your extension? For example, Flex graphs? Thanks! On Dec 19, 8:24 am, Wilson Xu wrote: > Thank you for your response quickly, it makes sense. > > Wilson Xu > > On Dec 19, 7:05 pm, sai wrote: > > > Sorry. I

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-18 Thread maven999
t the element via TH tag. Thanks all! On Dec 18, 10:05 am, maven999 wrote: > Hi Wilson, > > Unfortunately, the app is not publicly available so I cannot attach > the html file. > > al3kc, I tried the xpath method you suggested but it didn't work > either. I

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-18 Thread maven999
Hi Wilson, Unfortunately, the app is not publicly available so I cannot attach the html file. al3kc, I tried the xpath method you suggested but it didn't work either. I get the following error: 1) Error: test_Statistics(TC_UI): NoMethodError: undefined method `click' for nil:NilClass C:/r

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-17 Thread maven999
n't be supported by Watir, but I could be wrong. > > > > On Wed, Dec 17, 2008 at 1:11 PM, maven999 wrote: > > > Hi, > > > I have a dojo grid that I want to sort by column. The grid has 2 > > header cells named stat_name and stat_value. The header cell by &g

[wtr-general] How to click on a grid cell to sort?

2008-12-17 Thread maven999
Hi, I have a dojo grid that I want to sort by column. The grid has 2 header cells named stat_name and stat_value. The header cell by default does not have a 'sort' arrow that I can click. The sort button becomes visible when I click on the header cell the first time, after which I can sort up or

[wtr-general] Re: 'matches' method for regexp gives error

2008-12-16 Thread maven999
Sorry, I didn't see the previous message before I posted the above reply. Ravi, it worked! Thanks...so looks like my regexp was wrong all along. Thanks Paul for pointing me to text. Watir forum ROCKS! On Dec 16, 1:16 pm, maven999 wrote: > The problem is that db_data is the id for 2

[wtr-general] Re: 'matches' method for regexp gives error

2008-12-16 Thread maven999
you expecting > @mytestvalue =  $ie.span(:id, 'db_data').text.matches(/"db_\\[0-9\\]*/) > > to return ( ie what are you hoping to get back ). he to_s on the end > iis unlikely to be needed > > Paul > > On Tue, Dec 16, 2008 at 11:02 AM, maven999 wrote: > > > Hi

[wtr-general] Re: 'matches' method for regexp gives error

2008-12-16 Thread maven999
[0-9\\]*/) > > ( i think its the .text method you want, if it gives an undefinedied > method error, I got it wrong ;-) ) > > On Tue, Dec 16, 2008 at 10:28 AM, maven999 wrote: > > > Hi all, > > > I'm trying to grab a string from a block of span text from my UI.

[wtr-general] 'matches' method for regexp gives error

2008-12-16 Thread maven999
Hi all, I'm trying to grab a string from a block of span text from my UI. The block has and the block is Connected to: Current Database (db_1229419050) Created: Tue, 16 Dec 2008 09:17:30 GMT Next creation: Tue, 16 Dec 2008 15:17:30 GMT I want to grab the db_* string so I can compare it to the

[wtr-general] Re: How to click dijit button char

2008-12-02 Thread maven999
he understands you are questioning to understand, not > questioning their coding skills or methods.. > > On Dec 1, 10:10 am, maven999 <[EMAIL PROTECTED]> wrote: > > > Chuck, your guess was correct. > > > The following code worked in that I was able to

[wtr-general] Connect to postgresql and write query to csv

2008-12-01 Thread maven999
Hi all, I'm trying to connect to a postgresql db through Watir, execute a query and output the result of the query to a .csv file. I can connect, query and print (puts) to screen correctly, but am unable to put the output to the .csv file. require 'watir' require 'postgres' conn=PGconn.connect(

[wtr-general] Re: How to click dijit button char

2008-12-01 Thread maven999
hat's not enough to get you going in the right direction, > please post a larger section of the page code (or point us at a > similar page that is publically available) as Wesley requested. > > On Nov 24, 10:35 am, maven999 <[EMAIL PROTECTED]> wrote: > > > Hi Ch

[wtr-general] Re: How to click dijit button char

2008-11-24 Thread maven999
e in the code above is basically > just text..and normal text isn't clickable as far as I know. > maybe there's some other object that's actually overlapping that > button > > On Nov 21, 11:30 am, maven999 <[EMAIL PROTECTED]> wrote: > > > Hi all, >

[wtr-general] How to click dijit button char

2008-11-21 Thread maven999
Hi all, I have a drop down menu that can only be accessed by clicking on a down arrow character (▼) on the combo box. The html for the click location is pasted below: ▼ Flashing the button works: $ie.div(:class, 'dijitDownArrowButtonInner').flash But clicking it does not work: $ie.div(:cla

[wtr-general] Re: wait_until gives undefined method error

2008-11-21 Thread maven999
owser needs to be in a startup method. The error > message you are getting is telling you that @ie is nil (because it has > not been initialized). > > Bret > > maven999 wrote: > > Hi all, > > > I am trying to write some code to log into an app via a pop-up window > &g

[wtr-general] Unable to access element

2008-11-14 Thread maven999
Hi all, I'm trying to grab and print the text 'db_ABC' from the browser page. On the page, the text is "Connected to: Current Database (db_ABC)". The html code is: Connected to: Current Database (db_ABC) Created: Fri, 14 Nov 2008 14:37:31 GMT When I try: @ie.div(:id, db_top).span(:id, db_da

[wtr-general] wait_until gives undefined method error

2008-11-12 Thread maven999
Hi all, I am trying to write some code to log into an app via a pop-up window and then click some tabs inside it. However, when I try to encapsulate the login logic into a method, I get an error on console. I am pasting my code below followed by the console error. Any suggestions as to what I'm d

[wtr-general] Re: Issue with IE7's certificate page

2008-11-12 Thread maven999
Thanks. Weirdly, issue was resolved when I cleared my cache and restarted browser. On Nov 6, 1:55 am, Tony <[EMAIL PROTECTED]> wrote: > HiMaven, > > This is just a suggestion ... and others might have better ones > When testing a website (usually test env) certificates might expire > and get rene

[wtr-general] Issue with IE7's certificate page

2008-11-05 Thread maven999
Hi, I'm writing a basic script to log into an https site. When I use IE7 outside the script window to access the site, I first encounter a page stating that there is a problem with this website's security certificate. I thus wrote my script to click on the ''Continue to this website (not recommen