[wtr-general] Re: Printing a Text on Browser

2011-05-05 Thread Ashu
Hi, on trying the above I get the following error :undefined method 'td' for #FireWatir::Firefox:ox:0x32de718 url= title=company:networknomethoderror On May 5, 1:34 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 4, 2011 at 10:31 PM, Ashu ashay.n...@gmail.com wrote: trtd

[wtr-general] Re: Printing a Text on Browser

2011-05-05 Thread Ashu
Well I tried it, but since there doesnt exist any cell in the HTML, hence it does return with a error. On May 5, 12:54 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, May 5, 2011 at 9:40 AM, Ashu ashay.n...@gmail.com wrote: on trying the above I get the following error

[wtr-general] Re: Printing a Text on Browser

2011-05-05 Thread Ashu
Is there an alternative wherein I can list all the tables and then locate the particular desired text? Thanks... On May 5, 1:48 pm, Ashu ashay.n...@gmail.com wrote: Well I tried it, but since there doesnt exist any cell in the HTML, hence it does return with a error. On May 5, 12:54 pm

[wtr-general] Printing a Text on Browser

2011-05-04 Thread Ashu
Hie, I want to trace a text from browser and print it. Html is :- trtd class=normalProduct Id/tdtd class=nomal id = e0_id div class = system123456div/td/tr Can you please help me, as I want to trace and display 123456. Thanks -- Before posting, please read http://watir.com/support. In short:

[wtr-general] Check already existed browser instance

2011-04-01 Thread Ashu
Hi, I found a similar thread in Selenium forum. My application requires the need for browser instance while executing the code. As if the browser is closed by the user then the call to browser terminates my application. (I do create new browser instance as and when needed and terminate it

[wtr-general] Check for browser instance

2011-04-01 Thread Ashu
Hi, I found a similar thread in Selenium forum. My application requires the need for browser instance while executing the code. As if the browser is closed by the user then the call to browser terminates my application. (I do create new browser instance as and when needed and terminate it

[wtr-general] Sending bits to parallel port

2011-03-28 Thread Ashu
Hi, My project deals with sending data bits to a port through the parallel port. I am making use of dlportio.dll. I am referring to an example provided in http://yueda.issp.u-tokyo.ac.jp/weda/ruby/prnprtLX.rb. Can anyone please explain me how the code words especially I have never come across

[wtr-general] Problem in setting radio button value

2011-03-24 Thread Ashu
hi, I want to set radio button which are having the following fields(I have searched on related posts in the forum, was unable to solve my problem) trtd class=nIdle Situation/tdtd class=ninput type=radio value=0 name=idle0Text1input type=radio checked=checked value=1 name=idle0Text2/td/tr trtd

[wtr-general] Re: Problem in setting radio button value

2011-03-24 Thread Ashu
identify the object browser.radio(:value = 1, :index = 2).set On Thu, Mar 24, 2011 at 4:38 PM, Ashu ashay.n...@gmail.com wrote: hi, I want to set radio button which are having the following fields(I have searched on related posts in the forum, was unable to solve my problem) trtd class

[wtr-general] Error while browser opens

2011-03-23 Thread Ashu
Whenever I make a call for a new browser instance to be opened, by using the following $browser = Watir::Browser.new I am greeted with the following error in the command window, although my application doesnt crashes. C:/Ruby186/lib/ruby/gems/1.8/gems/activesupport-2.2.3/lib/

[wtr-general] Application crashes on first execution

2011-03-16 Thread Ashu
Hi, I am working on a project dealing with automation using WATIR. I have scripts for testing a Hardware device. On every first instance of executing the script, a new browser opens up. (Mozilla Browser 3.6.3) I hav installed jssh for firefox.(jssh-3.6-WINNT.xpi) Despite of that I am getting the

[wtr-general] Application crashes on first execution

2011-03-16 Thread Ashu
Hi, I am working on a project dealing with automation using WATIR. I have scripts for testing a Hardware device. On every first instance of executing the script, a new browser opens up. (Mozilla Browser 3.6.3) I hav installed jssh for firefox.(jssh-3.6-WINNT.xpi) Despite of that I am getting the

[wtr-general] Re: How to Trace the change in a field

2011-03-07 Thread Ashu
are to get a more 'exact' answer instead of a generic one. On Mar 3, 10:57 am, Ashu ashay.n...@gmail.com wrote: ya I agree with Orde well my testing page contains multiple tr with same class = normal and div contains class = system for every tr On Mar 3, 10:27 am, orde ohil...@gmail.com

[wtr-general] Re: Need support in using POST method in RUBY

2011-03-06 Thread Ashu
, they have function Selenium for Java [java] Checking network traffic,https://mail.google.com/mail/?shva=1#inbox/12e77a83a1360d2d you can read there about session data. br,Dani On 2 mar., 07:22, Ashu ashay.n...@gmail.com wrote: Hi, I am making use of POST method to trace

[wtr-general] How to Trace the change in a field

2011-03-03 Thread Ashu
hi, there is a field on the php page that keeps track of the change in counter field. On every next refresh the value changes of that variable. trtd class=normalChange counter/td td class=normaldiv class=system1/div/td/tr The 1 in the above code determines that one transaction has taken place and

[wtr-general] Re: How to Trace the change in a field

2011-03-03 Thread Ashu
The xpath for the html html trtd class=normalcounter change/tdtd class=normaldiv class=system1/div/td/tr is xpath /html/body/div/div/div[4]/div/fieldset/table[3]/tbody/tr[9]/ td[2]/div On Mar 3, 2:17 pm, Ashu ashay.n...@gmail.com wrote: hi, there is a field on the php page that keeps track

[wtr-general] Re: How to Trace the change in a field

2011-03-03 Thread Ashu
ya I agree with Orde well my testing page contains multiple tr with same class = normal and div contains class = system for every tr On Mar 3, 10:27 am, orde ohil...@gmail.com wrote: Find a way to determine the value of div class=system and assign it to a variable. On Mar 3, 1:35 am, Ashu

[wtr-general] Re: Can Watir support PHP based technology?

2011-03-02 Thread Ashu
can use it as a handle browser.button(:name,'SDP_0_0').flash()  # MAKE ME FLASH a Yellow highlight sleep 3 browser.button(:name,'SDP_0_0').click  # The actual click of the button puts 'DONE' On Feb 28, 12:46 pm, Chuck van der Linden sqa...@gmail.com wrote: On Feb 27, 8:44 pm, Ashu ashay.n

[wtr-general] Re: Unable to locate element

2011-03-01 Thread Ashu
requests directly (as opposed to using Watir to drive a web-browser that sends/receives those requests,  then you should be asking in a more general Ruby oriented group.  Doing that sort of thing is beyond the scope of this discussion group On Feb 28, 3:20 am, Ashu ashay.n...@gmail.com wrote

[wtr-general] Need support in using POST method in RUBY

2011-03-01 Thread Ashu
Hi, I am making use of POST method to trace and element in a PHP file which needs to be automated. While trying to locate through the XPATH, watir was unable to locate the element as the page that was referenced was a PHP page. I would like to learn more on the POST parameters. resp, data =

[wtr-general] Re: Need support in using POST method in RUBY

2011-03-01 Thread Ashu
:in `do_start' from C:/Ruby186/lib/ruby/1.8/net/http.rb:542:in `start' from C:/Ruby186/lib/ruby/1.8/net/http.rb:440:in `start' On Mar 2, 11:22 am, Ashu ashay.n...@gmail.com wrote: Hi, I am making use of POST method to trace and element in a PHP file which needs to be automated. While

[wtr-general] Re: Poll: What version of ruby do you use? What version of Watir do you use?

2011-02-28 Thread Ashu
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] watir 1.6.5 :-) On Feb 28, 3:50 pm, Alister Scott alister.sc...@gmail.com wrote: Hi, We're doing a quick poll about Ruby and Watir versions, so if you could please tell us what you use, that'd be great!

[wtr-general] Re: Unable to locate element

2011-02-28 Thread Ashu
, 2011 at 7:46 AM, Ashu ashay.n...@gmail.com wrote: Unable to locate element, using :xpath, /html/body/div/div/div[6]/div/ fieldset/table[2]/tbody/tr[3]/td[8]/ One thing I've noticed is that Firebug reports tbody elements where they haven't been specified in the HTML (and thus Watir won't

[wtr-general] Re: Can Watir support PHP based technology?

2011-02-27 Thread Ashu
zeljko.fili...@wa-research.ch wrote: On Thu, Feb 24, 2011 at 1:49 PM, Ashu ashay.n...@gmail.com wrote: Its working fine for me with HTML page But there is a problem inspecting the page of your PHP app? Željko -- Before posting, please read http://watir.com/support. In short: search before you

[wtr-general] Re: Error on running script for first time

2011-02-24 Thread Ashu
wrote: On Tue, Feb 22, 2011 at 9:23 AM, Ashu ashay.n...@gmail.com wrote: Despite installing jssh for Firefox, the following error occurs. Try watir-webdriver gem, it drives Firefox (and other browsers) and you do not have to install jssh: http://zeljkofilipin.com/2010/01/12/watir

[wtr-general] Re: Can Watir support PHP based technology?

2011-02-24 Thread Ashu
but beyond it none is being traced. Please Help.. On Feb 24, 1:58 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Feb 24, 2011 at 7:56 AM, Ashu ashay.n...@gmail.com wrote: is there any way wherein a PHPs functionality be wrapped thereby letting Watir to use the PHP page HTML

[wtr-general] Re: Can Watir support PHP based technology?

2011-02-24 Thread Ashu
Yes, I have Firebud installed on Firefox and I am using it for dealing with elements(HTML automation) Its working fine for me with HTML page On Feb 24, 5:47 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Feb 24, 2011 at 1:45 PM, Ashu ashay.n...@gmail.com wrote: It repeatedly

[wtr-general] Error on re-executing the script

2011-02-23 Thread Ashu
Hi, I am getting the following error the moment I reconnect the device that is used for testing. Please help me to resolve it Thanks C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ jssh_socket.rb:4 8:in `recv': An established connection was aborted by the software in your host

[wtr-general] Can Watir support PHP based technology?

2011-02-23 Thread Ashu
Hi, As the fact is that php-based has no bearing on the way watir interacts with it, because php is all done server-side and watir only deals with the html that is delivered to the browser. I would like to know is there any way wherein a PHPs functionality be wrapped thereby letting Watir to use

[wtr-general] Error on running script for first time

2011-02-22 Thread Ashu
Hi, Despite installing jssh for Firefox, the following error occurs. C:\Documents and Settings\tcsadmin\Desktopwait.rb C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/firewatir/ firefox.rb:237:in `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is

[wtr-general] Popup Handler error

2011-02-22 Thread Ashu
The following automation code to download a file produces an error undefined method `enabled_popup'. Please help me to resolve it. THanks. Code- require 'watir' require 'watir/contrib/enabled_popup' ie= Watir::IE.new ie.goto(http://http://www.yousendit.com/transfer.php?

[wtr-general] Re: Unable to locate element

2011-02-18 Thread Ashu
: are there Frames on the page perhaps? On Feb 17, 11:41 pm, Ashu ashay.n...@gmail.com wrote: On trying the above line of code irb displays irb(main):045:0 ie.image(:alt, 'Open SDP file').wait_until_present Watir::Exception::UnknownObjectException: Unable to locate element, using :alt,Open SDP file

[wtr-general] Re: Unable to locate element

2011-02-18 Thread Ashu
Sure, The Xpath is - /html/body/div/div/div[6]/div/fieldset/table[2]/tbody/tr[3]/td[8] On Feb 18, 3:33 pm, Сергей Демьянчук sergeydemjanc...@gmail.com wrote: Hi, Ashu, You wrote before that you use Firebug, could you please give xpath from firebug for desired element ? 2011/2/18 Chuck van

[wtr-general] Re: Unable to locate element

2011-02-18 Thread Ashu
Демьянчук sergeydemjanc...@gmail.com wrote: Hi, Ashu, You wrote before that you use Firebug, could you please give xpath from firebug for desired element ? 2011/2/18 Chuck van der Linden sqa...@gmail.com are there Frames on the page perhaps? On Feb 17, 11:41 pm, Ashu ashay.n...@gmail.com

[wtr-general] Re: Unable to locate element

2011-02-18 Thread Ashu
Демьянчук sergeydemjanc...@gmail.com wrote: Hi, Ashu, You wrote before that you use Firebug, could you please give xpath from firebug for desired element ? 2011/2/18 Chuck van der Linden sqa...@gmail.com are there Frames on the page perhaps? On Feb 17, 11:41 pm, Ashu ashay.n...@gmail.com

[wtr-general] Re: Unable to locate element

2011-02-18 Thread Ashu
] name: SDP_0_1 src: file:///H:/WebPlayer/main1.php_files/play-icon-%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20big.png alt: Open SDP file title: Open SDP file = [name, src, alt, title] irb(main):115:0 Thanks, Sergii 2011/2/18 Ashu ashay.n

[wtr-general] Re: Unable to locate element

2011-02-17 Thread Ashu
/tr/tbody/ table/fieldset/div On Feb 17, 12:26 pm, Tim Koopmans tim.ko...@gmail.com wrote: What does the HTML for that element look like? Cheers, Tim @90kts On Thu, Feb 17, 2011 at 4:57 PM, Ashu ashay.n...@gmail.com wrote: Hi, I am working on an Automation project using WATIR. I am

[wtr-general] Re: Unable to locate element

2011-02-17 Thread Ashu
On entering this line - ie.image(:alt, 'Open SDP file').wait_until_present it returned thie following error irb(main):033:0 ie.image(:alt, 'Open SDP file').wait_until_present Watir::Exception::UnknownObjectException: Unable to locate element, using :alt, Open SDP file from

[wtr-general] Re: Unable to locate element

2011-02-16 Thread Ashu
Hi, I am working on an Automation project using WATIR. I am getting an error while locating an element to be clicked while automation. Error - C:/Ruby186/lib/ruby/gems/1.8/gems/firewatir-1.6.5/lib/ firewatir/element.rb:907:in `assert_exists': Unable to locate element, using :alt, Open SDP file