[wtr-general] Re: Loop around table and click on each link

2009-05-11 Thread Shweta
> count=table[2].cells.length > for i in 0..count-1 >     puts table[2][i+1].innerText >     table[2][i+1].link(:index, 1).click > end > > Thanks. > Wesley Chen. > > > > On Mon, May 11, 2009 at 5:49 PM, Shweta wrote: > > > cellspacing="0" border=

[wtr-general] Re: Loop around table and click on each link

2009-05-11 Thread Shweta
30 On May 11, 2:31 pm, Wesley Chen wrote: > Would you please put your html here? > > Thanks. > Wesley Chen. > > > > On Mon, May 11, 2009 a

[wtr-general] Loop around table and click on each link

2009-05-11 Thread Shweta
Hi I have a scenario where i need to click on every link in table then i need to verify in next page. I was using the below code: myTable=ie.table(:index, 10) iRows=myTable.row_count() i=2 while i <= iRows do myTable [i][2].flash myTable [i][1].focus myTable [i][2].click

[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs

2009-05-06 Thread Shweta
Hi Siva thanks a lot,the solution u had given is working i tried like this ie.cell(:text=>"text on the tab").click its working and iwas able to move to next tabs thanks once again Regards Shwetha On May 4, 6:15 pm, sHiVa wrote: > Hi Shweta, > > Index property will not vi

[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs

2009-05-04 Thread Shweta
Hi, thanks shiva 1) Those tabs are standard tabs 2) 3)there is no index property avilable for the property the properties/attributes that are available in the IE developer tool are as follows Namevalue 1) Class tabselected 2) Cursor(css)

[wtr-general] Re: Problem with ie.goto when we used to navigate between the tabs

2009-05-03 Thread Shweta
licking on the link/span/image to get to the > various tabs rather than using ie.goto > > Hope this helps! > > -Tiffany > > On Apr 30, 5:50 am, Shweta wrote: > > > > > Hi > > > I am using ie.goto("corresponding tab url") to navigate between

[wtr-general] Problem with ie.goto when we used to navigate between the tabs

2009-04-30 Thread Shweta
Hi I am using ie.goto("corresponding tab url") to navigate between the tabs by script is running fine its performing the actions in each tab,whereas in my application until unless i fill the valid data in all the tabs it will not navigate to other page from last tab.While running it performs the

[wtr-general] Re: Unable to click on Tabs

2009-04-27 Thread Shweta
Hi I tried like this,But it does not clicks on tab,I need to click here on Selection tab,Can anyone suggest me the solution for this. ie.cell(:class,"tab).image(:src,"../images/tabBetween.jpg").click HTML Code: Info Selection Quote Coverage Producer On

[wtr-general] Re: Unable to click an element in table/grid

2009-04-26 Thread Shweta
Hi I tried with all those methods it does nothing.My script stops without any error On Apr 27, 10:30 am, Vishal wrote: > Try > > ie.table.fire_event("onmousedown") > ie.table.fire_event("onmouseup") > ie.table.fire_event("onclick") > > On Apr

[wtr-general] Unable to click an element in table/grid

2009-04-26 Thread Shweta
Hi In my application after i search for an id from serach page it displays the result in a grid/table,There i need to click on the result.later it navigates to other page there i need to perform the actions. I used something like this code: ie.table(:index,1).click It dint work out. Can anyone

[wtr-general] undefined method `button' for # (NoMethodError)

2009-04-02 Thread Shweta
Hi Am using arrays in my script to test with multiple data,the scenario is in my application i have a search page there i am able to search with different criteria and there is a clear button to set the values to default.I am using different files as a libraries and am calling all there files in

[wtr-general] Web page is not opening

2009-04-02 Thread Shweta
HI I am trying to open this link "http://wiki.rubygarden.org/Ruby/page/ show/ScriptingExcel", which i got from google and which helps for excel scripting.But its not opening showing HTTP404 error. Can anyone suggest me is theer any basic excel scripting links --~--~-~--~~---

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
of this thread is likely because you > don't have a worksheet named 'Setup' in your excel spreadsheet. > > On Apr 1, 10:21 pm, Tiffany Fodor wrote: > > > > > Hi! > > > Have you done any troubleshooting on what you have stored in $record? > >

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
Hi Jim Still am getting the same error at this line $ie.text_field(:name, "PolicyNumber").value = ($record ['PolicyNumber']) error: ./SearchInspection.rb:39:in `searchinspections': undefined method `[]' for nil:NilClass (NoMethodError) On Apr 1, 8:21 pm,

[wtr-general] Re: undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
sleep 3 return $ie $ie.close end end and am calling in other test as require 'win32ole' require 'watir' require 'Login_irma' require 'test/unit/assertions' require 'watir/assertions' require 'SearchInspection' $ie = login

[wtr-general] undefined method `close' for nil:NilClass (NoMethodError)

2009-04-01 Thread Shweta
Hi Am trying to parameterizing my test cases am getting some error,am not understanding where am wrong i have gone thru the posts regarding this i dint get any idea,Can anyone pls let me know whats wrong here My code: require 'watir' require 'watir/testcase' require 'watir/assertions' require '

[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-31 Thread Shweta
HI Thanks Jim,I have placed the xls.rb in the same directory where the ruby file exists and now it worke fine. On Apr 1, 3:23 am, Jim Matthews wrote: > Shweta, > > I am not sure which problem you are having right now. > > It looks like you are still having the problem of: >

[wtr-general] Error HRESULT error code:0x800401f3 in opening excel with Watir

2009-03-31 Thread Shweta
While executing @excel = WIN32OLE.connect("excel.Application") following error has occured Error: >ruby XLS_usage_example.rb ./xls.rb:36:in `initialize': unknown OLE server: `excel.Application' (WIN32OLERuntimeError) HRESULT error code:0x800401f3 Invalid class string from ./xls.rb:36

[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-31 Thread Shweta
the data.I dont have basic idea of it.when am trying for login page by saving xl in C:\ drive i always get this error error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- xls (LoadError) from c:/ruby/lib/ruby/site_ruby/1

[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-30 Thread Shweta
I have searched with the prevvious posts there you told to check the environment variables in advanced tab of mycomputer properties,I have checked i have the rubyopt defined as RUBYOPT -rubygems On Mar 30, 7:30 pm, Jim Matthews wrote: > Shweta, > > This sounds like the problem where y

[wtr-general] Re: Cannot click Apply button after using file upload dialog box

2009-03-30 Thread Shweta
try with this $ie.button(:name,"ApplyAddDocument").click #try with Value also instead of name property or Watir.autoit.Send('{ENTER}') On Mar 31, 5:16 am, "vladimir...@hotmail.com" wrote: > I need to select a document by clicking Browse... button. > After selecting the file for download, I need

[wtr-general] Re: Getting no such file to load error when working with excel

2009-03-30 Thread Shweta
Hi When i was trying to parameterize with excel for login page am getting this error.Can anyone pls let me know what might be wrong in this. Error message: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- xls (LoadError) from

[wtr-general] Getting no such file to load error

2009-03-30 Thread Shweta
Hi When i am trying to execute this code second time i am getting this error but first time it worked fine.This was a sample code i got from the advanced examples of watir general error: XLS_usage_example.rb:2:in `require': no such file to load -- watir (LoadError) Code: require 'xls' requir

[wtr-general] Re: Test Hangs when choose file window opened

2009-03-24 Thread Shweta
OK Thanks for your quick response On Mar 24, 4:08 pm, Željko Filipin wrote: > On Tue, Mar 24, 2009 at 12:02, Shweta wrote: > > Thanks.Its working fine but the choose file window is defaulting to > > Desktop how to set to C:\ drive > > I have also noticed that file upload

[wtr-general] Re: Test Hangs when choose file window opened

2009-03-24 Thread Shweta
Thanks.Its working fine but the choose file window is defaulting to Desktop how to set to C:\ drive On Mar 24, 3:39 pm, Željko Filipin wrote: > On Tue, Mar 24, 2009 at 11:32, Shweta wrote: > > ie.file_field(:name,"uploadFile").click > > Delete the line above.

[wtr-general] Re: Test Hangs when choose file window opened

2009-03-24 Thread Shweta
Hi I got the previous code from old posts regarding upload file I have tried with this still its not working same thing it hangs when choose file window opened.I have placed it in C:\ and tried also as well i renamed the file name as AReportOn. code i used is: ie.button(:name,"manageSuppInfoB

[wtr-general] Re: Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Shweta
For this tool they specifically mentioned that This tool works with Firefox 1.5 and above.Actually i want to use IE only.I dont think it helps for me On Mar 23, 5:16 pm, Željko Filipin wrote: > On Mon, Mar 23, 2009 at 12:59, Shweta wrote: > > or is it possible to run if i install sa

[wtr-general] Re: Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Shweta
Mar 23, 2009 at 12:21, Shweta wrote: > > I have generated a script from watir recorder > > You will not get very far with Watir if you do not read this: > > http://wiki.openqa.org/display/WTR/Quick+Starthttp://wiki.openqa.org/display/WTR/Tutorial > > > MissingSo

[wtr-general] Asking for safariwatir source while running scripts from watirrecorder++

2009-03-23 Thread Shweta
Hi I have generated a script from watir recorder and trying to run from scite but displaying error as MissingSourceFile: no such file to load -- safariwatir c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/core_ext/module/introspection.rb:70:in `const_get' c:/ruby/l

[wtr-general] Script not running and not showing error message also

2009-03-20 Thread Shweta
Hi all I am trying with this sccript to handle jaava pop ups can any one pls help me regarding this? If i run this script its not clicking on OK button and not displaying any errors also require 'watir' $ie = Watir::IE.new $ie.goto('http://www.google.com/preferences?hl=en') $ie.button(:name,"subm

[wtr-general] Need help in this code

2009-03-20 Thread Shweta
I was using th below code to handle java pop up and am not able to handle it successfully.My code is require 'watir' $ie = Watir::IE.new $ie.goto('http://www.google.com/preferences?hl=en') $ie.button(:name,"submit2").click def popup_clicker(ie,buttonname) require 'watir/contrib/enabled_

[wtr-general] Maximizng the Browser

2009-03-20 Thread Shweta
When i am trying to maximize the ie with the folllowing code am getting this error message can anyone pls guide me where am doing mistake ie = Watir::IE.start("http://groups.google.com/group";) ie.goto("http://http://groups.google.com/group";) $ie.maximize() am getting the following error messag

[wtr-general] Want to know how to handle windows Print dialog and choose file dialogs

2009-03-19 Thread Shweta
I want to know how to handle windows pop ups in my app and how to handle the choose file dialog while uploading a file.In my application after a click on Print site Info button its opening another window with print dialog in that i need to click on Print button.Will anyone pls let me know how to h

[wtr-general] Re: Need Help on Regular Expression

2009-03-19 Thread Shweta
You have told me to enable this am new to Watir can you let me know how to enable this 2. I use IEthrottle to simulate a sow browser. When enabled this works On Mar 19, 9:13 pm, Powerglide wrote: > Hi Nagamani, > you could do it simply by having the following code: > > #...@b -> Substitute @b w

[wtr-general] Re: Need Help on Regular Expression

2009-03-19 Thread Shweta
Application is sorting the columns after a click on the column head i dont have separate buttons like ascending or descending to sort Hi am using code like this to regularise ie.link(:href,"http://qa.irma.icat.com/inspwebapp/ displayInspections.do? doSort=true&sortAttr=insuredName&sortDirection=

[wtr-general] Need help to test the pagination functionality

2009-03-19 Thread Shweta
HI I need to test the pagination functionality in my application i have links like this 1,2,3,..All and these are links How i can test this or regularise this i was using code like this ie.link(:href,"http://qa.irma.icat.com/inspwebapp/ displayInspections.do?windowNumber=[0-9])").click BUt

[wtr-general] Need help on this issue

2009-03-19 Thread Shweta
Hi I have a selection box in my application and its having scroll down option with this by default one item will be selectd in that,manually if i am selecting other item the default one will be deselcted and recent one will get selected but when i am running a script in watir it behaves as contro