[wtr-general] Re: Error while running Watir

2009-03-05 Thread amit kulkarni
Hi, When i tried for the first time then it didnt work, But after trying for 2-3 times it worked.I am using it on Vista platform. Try it out for 2-3 times.. Also did u installed the jssh addon for firefox? Thanks, Amit --~--~-~--~~~---~--~~ You

[wtr-general] Re: Browse an Image

2009-10-21 Thread Amit Kulkarni
Thanks a lot for the link. Now i can upload an image by using the following command Browser.file_field(:name, photo).set(path name i.e. C:\\abc\\abc.jpg) Please dont forget to enter double slash. :-) On Thu, Oct 15, 2009 at 1:40 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On

[wtr-general] Re: Problem with radio button

2009-10-21 Thread Amit Kulkarni
Hi Zeljko, I tried by using the above step but still no success :-( It pops up a small window saying Please select an operation along with OK button. I still cant figure out whats is the problem. On Wed, Oct 21, 2009 at 4:04 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Oct

[wtr-general] Re: Problem with radio button

2009-10-21 Thread Amit Kulkarni
No it does not flashed the radio button but again it is popping the window. I dont know why it is getting popped up. On Wed, Oct 21, 2009 at 4:25 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Oct 21, 2009 at 12:51 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote

[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Amit Kulkarni
also tried using .set method but no success. I am not getting what is wrong.Please suggest. On Wed, Oct 21, 2009 at 4:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Oct 21, 2009 at 1:02 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I tried following code but still

Fwd: [wtr-general] Re: Problem with radio button

2009-10-21 Thread Amit Kulkarni
-- Forwarded message -- From: Amit Kulkarni amitkkulkarni...@gmail.com Date: Wed, Oct 21, 2009 at 4:40 PM Subject: Re: [wtr-general] Re: Problem with radio button To: watir-general@googlegroups.com No it does not flashed the radio button but again it is popping the window. I dont

[wtr-general] Re: Problem with Checkbox

2009-10-21 Thread Amit Kulkarni
No,it does not flash up anything. It also does not display any error and goes to next step On Wed, Oct 21, 2009 at 5:39 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Does this flash what you want? Browser.span(:text, Ratingsanity1).flash Željko

[wtr-general] Accessing link method

2009-10-21 Thread Amit Kulkarni
Hello, Consider this scenario: I have list of images(which are non-clickable) and below that there is an edit link Now i want to click that edit link so that i can edit the description. Html code is as follows: div style=width: 150px; height: 150px;input id=attachment[218] type= checkbox

[wtr-general] Re: Problem with Checkbox

2009-10-22 Thread Amit Kulkarni
Any suggestions on the above issue? Please help On Wed, Oct 21, 2009 at 5:49 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: No,it does not flash up anything. It also does not display any error and goes to next step On Wed, Oct 21, 2009 at 5:39 PM, Željko Filipin zeljko.fili...@wa

[wtr-general] Re: Problem with radio button

2009-10-22 Thread Amit Kulkarni
Help required on above issue :-) 2009/10/21 Amit Kulkarni amitkkulkarni...@gmail.com -- Forwarded message -- From: Amit Kulkarni amitkkulkarni...@gmail.com Date: Wed, Oct 21, 2009 at 4:40 PM Subject: Re: [wtr-general] Re: Problem with radio button To: watir-general

[wtr-general] Re: Browse an Image

2009-10-22 Thread Amit Kulkarni
Thanks a lot Željko . On Wed, Oct 21, 2009 at 1:43 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Oct 21, 2009 at 9:06 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Browser.file_field(:name, photo).set(path name i.e. C:\\abc\\abc.jpg) Please dont forget to enter

[wtr-general] Help required regarding link method

2009-10-22 Thread Amit Kulkarni
Hello all, Following is my scenario: I have a list of images and below that image contains Edit link. Now i want to click on that Edit so that i can Edit the Title and Description. Following is the html code: div style=width: 150px; height: 150px;input id=attachment[218] type= checkbox value=1

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
wrote: On Thu, Oct 22, 2009 at 10:05 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: i want to recognize this Edit link using the image title. browser.link(:after?, browser.image(:title, Photogallerysanity)).click Željko -- http://watirpodcast.com

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:36 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I tried browser.link(:after?, browser.image(:title, Photogallerysanity)).click but no success Amit, You have posted a few very similar questions in the last two days. Have you read

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
Sorry again, Yes i read the tutorial. I tried some stunts but no success.So posted my queries here. On Thu, Oct 22, 2009 at 4:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Oct 22, 2009 at 12:47 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Have you read the

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery/attachments/218/edit?media=print']/).text # = Edit Still no success.Is there something wrong with the above code? On Thu, Oct 22, 2009 at 4:55 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: Sorry

[wtr-general] Re: Help required regarding link method

2009-10-22 Thread Amit Kulkarni
...@gmail.com wrote: can you try this? Browser.link(:xpath,//i...@title='Photogallerysanity']/a).flash() or click() - Angrez On Thu, Oct 22, 2009 at 5:03 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: I also tried to use using Xpath. i.e. Browser.link(:xpath,//a...@href='/Nikes/photo_gallery

[wtr-general] Re: Problem with radio button

2009-10-22 Thread Amit Kulkarni
Thanks a lot.But the name act2[165] is not going to be same all the time. I have my poll title as Test.So i want to set my focus on delete radio button whose title is Test. Is it possible to do this? This is my html script tr tdTest/td tdUnpublished/td td class=actions label for=Update input

[wtr-general] Re: Help required regarding link method

2009-10-23 Thread Amit Kulkarni
your question clearly enough. For the html code you provided, of course it is easy for us to help you to locate. Please give us the whole page source you failed to locate, and show the error message you got. Thanks. Wesley Chen. For life, the easier, the better. 2009/10/22 Amit Kulkarni

[wtr-general] Re: Help required regarding link method

2009-10-23 Thread Amit Kulkarni
= underline, :index =1).click We don't need use Xpth here. Thanks. Wesley Chen. For life, the easier, the better. 2009/10/23 Amit Kulkarni amitkkulkarni...@gmail.com Thanks for the help. Following is the page source. body div class=main !-- main -- div class

[wtr-general] Re: Problem with radio button

2009-10-23 Thread Amit Kulkarni
ie.radio(:id, theId ).set On Oct 22, 8:31 am, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Thanks a lot.But the name act2[165] is not going to be same all the time. I have my poll title as Test.So i want to set my focus on delete radio button whose title is Test. Is it possible to do

[wtr-general] Re: Problem with radio button

2009-10-23 Thread Amit Kulkarni
Hey all, What i have done is: I got all the elements by my_array = Browser.table(:class , 'admin-monochrome').to_a Under my_array i got the string Test. Now how should i click on Delete button? Please help? On Fri, Oct 23, 2009 at 1:55 PM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: Hi Super

[wtr-general] Javascript pop uo using firewatir

2010-11-17 Thread Amit Kulkarni
Hello all, I am having a application in which user can be created,updated and deleted. On delete action popup is there which onclick it shows a pop up box along with two buttons i.e. Ok and Cancel My scenario is: User should be able to click on Destroy link and then click on OK in the pop up box

Re: [wtr-general] Re: Javascript pop uo using firewatir

2010-11-22 Thread Amit Kulkarni
:in `assert_enabled' from /var/lib/gems/1.8/gems/firewatir-1.6.7/lib/firewatir/element.rb:1072:in `click' from user_destroy.rb:6 On Thu, Nov 18, 2010 at 2:36 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Nov 18, 2010 at 8:21 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote

Re: [wtr-general] Re: Javascript pop uo using firewatir

2010-11-24 Thread Amit Kulkarni
. 2010/11/22 Amit Kulkarni amitkkulkarni...@gmail.com Thanks a lot for the link. But i tried every option but no success. If you see carefully it uses a Ajax call. require 'rubygems' require 'firewatir' Watir::Browser.default = 'firefox' Browser = Watir::Browser.new Browser.goto(http

Re: [wtr-general] Re: Javascript pop uo using firewatir

2010-11-24 Thread Amit Kulkarni
: On Thu, Nov 18, 2010 at 8:21 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: On delete action popup is there which onclick it shows a pop up box along with two buttons i.e. Ok and Cancel Maybe something from here could help you: http://wiki.openqa.org/display/WTR/Pop+Ups http

Re: [wtr-general] Re: Javascript pop uo using firewatir

2010-11-26 Thread Amit Kulkarni
/in/alisterscott There are two ways to get enough: One is to continue to accumulate more and more. The other is to desire less. *~ G. K. Chesterton* 2010/11/24 Amit Kulkarni amitkkulkarni...@gmail.com Hi, I tried the code but it gives me error as gem_original_require': no such file to load

[wtr-general] Opening new browser window from existing one

2010-11-29 Thread Amit Kulkarni
Hello all, Can we open a new browser window from the existing one using Firewatir for Linux and for Watir for windows: Following are my gem versions: firewatir (1.6.7, 1.6.5) Following is my code: require 'rubygems' require 'firewatir' Watir::Browser.default = 'firefox' Browser =

Re: [wtr-general] Opening new browser window from existing one

2010-11-29 Thread Amit Kulkarni
-research.ch wrote: On Mon, Nov 29, 2010 at 5:13 PM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Browser.attach(:title, '/test123/') a title=test123 href=/users/newNew user/a If a link has title test123, it does not mean that the page that it leads to will have the same title. Inspect

Re: [wtr-general] Opening new browser window from existing one

2010-11-29 Thread Amit Kulkarni
Hi, The page which is going to open has the following in the title tag. titleUsers: new/title I changed the title tag which is currently present on the page from where i am going to click. So following is displayed under title tag: titleUsers: index/title on the top AND a

Re: [wtr-general] Opening new browser window from existing one

2010-11-29 Thread Amit Kulkarni
Hi, Currently i am using FireWatir on Linux.So i am just thinking is there any problem in the code running on Linux and running it on windows. On Tue, Nov 30, 2010 at 11:54 AM, Amit Kulkarni amitkkulkarni...@gmail.comwrote: Hi, The page which is going to open has the following in the title tag

Re: [wtr-general] Opening new browser window from existing one

2010-11-30 Thread Amit Kulkarni
Filipin zeljko.fili...@wa-research.ch On Tue, Nov 30, 2010 at 7:24 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: titleUsers: new/title titleUsers: index/title on the top Browser.attach(:title, '/Users: new/') I am now completely confused what is the title of the page that you

Re: [wtr-general] Re: Opening new browser window from existing one

2010-11-30 Thread Amit Kulkarni
On Nov 30, 4:08 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Nov 30, 2010 at 7:24 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: titleUsers: new/title titleUsers: index/title on the top Browser.attach(:title, '/Users: new/') I am now completely

Re: [wtr-general] Opening new browser window from existing one

2010-12-01 Thread Amit Kulkarni
30, 2010 at 5:13 AM, Amit Kulkarni amitkkulkarni...@gmail.com wrote: Hello all, Can we open a new browser window from the existing one using Firewatir for Linux and for Watir for windows: Following are my gem versions: firewatir (1.6.7, 1.6.5) Following is my code: require 'rubygems