[wtr-general] Re: Installing the IEDriverServer

2012-08-23 Thread Tony Chamberlain
OK I downloaded, installed and ran IEDriverServer.exe Now what? It is running. A little run window that says Listening on port . My IE does not have Selenium as an option to pick, and no IE started up when I ran it. And the *Everything you wanted to know about the Internet Explorer

[wtr-general] watir-webriver won't create a Watir::Browser for Firefox 6.0

2011-08-17 Thread Tony Zanella
Using Ubuntu Natty Narwhal, I just updated my Firefox to Firefox 6.0 today. Now, watir-webdriver will not follow through on creating Watir::Browser.new :firefox $ gem list --local | grep watir-webdriver watir-webdriver (0.3.1) Everything is OK with chrome: $ irb ruby-1.8.7-p352 :001 require

[wtr-general] Re: watir-webriver won't create a Watir::Browser for Firefox 6.0

2011-08-17 Thread Tony Zanella
Thanks Jari, that did it! On Aug 17, 4:13 pm, Jari Bakken jari.bak...@gmail.com wrote: On Wed, Aug 17, 2011 at 9:39 PM, Tony Zanella tony.zane...@gmail.comwrote: Any suggestions, short of downgrading Firefox? Upgrade selenium-webdriver to 2.4.0. -- Before posting, please read http

[wtr-general] Re: watir-webriver won't create a Watir::Browser for Firefox 6.0

2011-08-17 Thread Tony Zanella
Thanks Dmitriy, that did it! On Aug 17, 4:15 pm, Dmitriy Korobskiy dkro...@gmail.com wrote: On 8/17/11 3:39 PM, Tony Zanella wrote: Using Ubuntu Natty Narwhal, I just updated my Firefox to Firefox 6.0 today. Now, watir-webdriver will not follow through on creating Watir::Browser.new

[wtr-general] Re: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread Tony
Hi Alpin How did you get the click_no_wait to work on the patched ruby 1.8.6-27. Is the patch on ruby 1.8.6-27, to solve this problem? If so could you share the patch? Thanks, Tony -- You received this message because you are subscribed to the Google Groups Watir General group. To post

[wtr-general] Re: Watir Logo Refresh Competition

2009-09-08 Thread Tony
Hi Alister, Are you still accepting logos ... ?? Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting

[wtr-general] Re: Check value of anonymous text field

2009-09-02 Thread Tony
= ie.text_fields.collect {|tf | tf} # iterate to check for none_null_ name text field for tf in textF do if ie.text_field(:name, tf.name).value != 'null' puts tf.name.to_s end Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: Modal dialog window opened from page_load event

2009-09-01 Thread Tony
/c2ee4fdebe00a2d2/d42a15121e820178#d42a15121e820178 Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting

[wtr-general] Re: Reg-Image(need help urgent)

2009-08-28 Thread Tony
Hi iLa, try this ie.image(:value, submit) Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting

[wtr-general] Re: WATIR WITH QC INTEGRATION

2009-08-28 Thread Tony
Hi Kumar, The test scripts can also be saved in QC. The result files, test results, steps etc can be updated back into QC. QC provides complete automation using its com library. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-08-27 Thread Tony
app_link e = Watir::IE.attach(:title, /APP Title/) e.button(:id, menu_button_id).click d = e.div(:id, sub_menu_div_id) t = d.table(:index, 1) r = t.row(:index, 1) puts(r) r.fire_event_no_wait(onmousedown) # it should not block here puts e.url end end Thanks, Tony

[wtr-general] Re: Modal dialog window opened from page_load event

2009-08-27 Thread Tony
@down_load_time = Time.now - start_load_time run_error_checks sleep @pause_after_wait unless no_sleep @down_load_time end Let me know if you have any issues. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-08-26 Thread Tony
believe if there is a blocking part within a thread .. it should not block on the other threads. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Tony
, class IE http://pastie.org/595060 Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read

[wtr-general] Re: Is there a method to handling modal dialog but not providing the title?

2009-08-26 Thread Tony
(cntrlhwnd) Win32API.new(user32, SendMessage,'','L').Call(cntrlhwnd, 0x0006, 1,0) Win32API.new(user32, SendMessage,'','L').Call(cntrlhwnd, 0x00F5, 0,0) end private :clickWin32Button ### Thanks, Tony

[wtr-general] Re: Watir fire_event that opens a modal dialog no wait needed

2009-08-25 Thread Tony
://www.w3schools.com/jsref/jsref_onmouseover.asp;) img = iewin.image(:alt, W3Schools) img.fire_event_no_wait(onmouseover) Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post

[wtr-general] Re: Is there any way to run a watir script automatically in every hour.

2009-08-12 Thread Tony
Hi Maumita, 1. Not sure on this. 2. You can add your scripts to a batch file and run the batch file from task scheduler. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post

[wtr-general] Re: Firefox 3.5 compatible with FireWatir?

2009-08-12 Thread Tony Zanella
Hello all, I work in an office with developers using Linux, Mac, and Windows boxes. We have a set of regression tests written in FireWatir that we run on these various boxes. Since a couple of us (Mac and Windows) have upgraded to Firefox 3.5, the jssh plugins (on Mac jssh 0.1 and on Windows jssh

[wtr-general] Re: Pick pop-up text and oracle DB connectivity issue

2009-07-31 Thread Tony
(cntrlhwndCANCEL) end def clickWin32Button(cntrlhwnd) Win32API.new(user32, SendMessage,'','L').Call(cntrlhwnd, 0x0006, 1,0) Win32API.new(user32, SendMessage,'','L').Call(cntrlhwnd, 0x00F5, 0,0) end Thanks, Tony --~--~-~--~~~---~--~~ You received

[wtr-general] Re: customize xml generated by ci_reports

2009-07-24 Thread Tony
test_site = http://www.google.com; browser = Watir::Browser.new browser.goto test_site browser.text_field(:name, q).set pickaxe browser.button(:name, btnG).click end end Thanks, Tony

[wtr-general] Re: customize xml generated by ci_reports

2009-07-23 Thread Tony
Hi Marlon, Now you dont need to use require 'ci/reporter/rake/ test_unit_loader.rb' Instead only require the modified file. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-22 Thread Tony
\instantclient_11_1 to the path variable. dbtest.rb require 'oci8' OCI8.new('username', 'password', 'hostname:port/SID').exec ('select * from temp_cancel_subs') do |r| puts r.join(',') end This worked for me. I had to connect to oracle 10g Thanks, Tony

[wtr-general] Re: customize xml generated by ci_reports

2009-07-22 Thread Tony
. If you dont need this, remove @report_manager.write_newreport_allsuites () from TestUnit.start_test and TestUnit.finish_test. Now the xml would be generated only after each testuite(class) has finished executing all the tests as in the original Ci_reporter. Thanks, Tony

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Tony
Hi Dheeraj, Forgot to add the outval variable before the begin in wait. Have updated the code, please try changing the code again. Let me know if you run into any other issues. Thanks, Tony On Jul 21, 9:51 am, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi, I tried my code

[wtr-general] Re: customize xml generated by ci_reports

2009-07-21 Thread Tony
Let me know if you run into any other issues - :) Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting

[wtr-general] Re: Find the parent window of a javascript prompt

2009-07-20 Thread Tony
Hi Siva, Not possible to get the popup text through the autoit or win32ole. You can however get the text through from the dialog box dom using javascript. Thanks, Tony On Jul 19, 8:16 pm, sHiVa krapa.ph...@gmail.com wrote: Tony, Are you able to get the popup text using Autoit when the popup

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Tony
Hi Dheeraj, Modified http://wiki.openqa.org/display/WTR/Security+Alerts to handle these popups. Note: you would have to change the code in ie_class.rb files for this. No changes or extra steps is required in your testcase. The popups yes button will be clicked automatically. Thanks, Tony

[wtr-general] Find the parent window of a javascript prompt

2009-07-17 Thread Tony
(window most recently created) and assume this is the popup which doesnt seem to be a good solution. Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email

[wtr-general] Re: currentstyle not working in firefox

2009-06-05 Thread Tony
Hi, You could use getComputedStyle. This is similar to currentstyle in IE. Here is a function that is similar to the ie's element.visible function which uses getComputedStyle to get the current visibility style- def visible? assert_exists jssh_command = var val = 'true'; var str = '';

[wtr-general] Re: Scripting a foreign subframe

2009-04-22 Thread Tony
a different domain. 4. Try to enter the username/password and click on SignIn Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general

[wtr-general] Re: How do I get the page status (200, 404, 500, etc)

2009-04-22 Thread Tony
/ This supports ruby programming and could be used along with watir to get the results you need. If anyone has a better solution using COM, iam waiting to hear. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Creating Frame objects before a page with a frame exists

2009-04-08 Thread Tony
. (Watir::Exception::UnknownFrameException) Thanks, Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please

[wtr-general] Creating Frame objects before a page with a frame exists

2009-04-08 Thread Tony
way to store the frame object i found was, by using it as a string. Is there any other way ??? example - txtfield = 'mybrow.frame(:id, loginframe).text_field(:id, lgnId1)' eval(txtfield).set(newone) Thanks, Tony --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: Dynamic Objects

2009-04-02 Thread Tony
You could also check if the xpath is changing, most probably the xpath for the element would not change... hence you could use xpath to identify your elements -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: overriding javascript

2009-01-07 Thread Tony
).click_no_wait Wow .. great way to get rid of these confirm boxes.. only have to get this to work on firewatir tooo... Anyways I have tried this on IE8 RC1 - 8.0.6001.18344 - Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: Unable to locate link in dojo dialog box

2008-12-29 Thread Tony
.. which will display the dynamic changes to the pages .. here you can check for the references for your link.(Dont use viewsource) I think you can use iedeveloper for ie. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: Calling Javascript function from WATIR

2008-12-17 Thread Tony
- js_eval ffnew = FireWatir::Firefox.new ffnew.js_eval(document.cookie) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before

[wtr-general] Re: It displays error message when I use method bring_to_front.

2008-12-12 Thread Tony
.. but i doubt that regsvr32 is removed from your system. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting

[wtr-general] Re: Accessing an application's registry keys with Ruby

2008-12-12 Thread Tony
(hkey_local_machine,#{sMSRegPath}\\Windows NT\ \CurrentVersion\\Winlogon,DefaultUserName) end #Returns the Logged in Domain def getCurrentDomain return getKeyValue(hkey_local_machine,#{sMSRegPath}\\Windows NT\ \CurrentVersion\\Winlogon,DefaultDomainName) end Hope this helps you... -Tony

[wtr-general] Re: LoadError

2008-12-09 Thread Tony
irb(main):002:0 i see that you have started irb again and to run require you are using irb require watir ... is wrong. (just use require watir) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: How to handle Security Alert or Certificate Exception popup

2008-12-07 Thread Tony
to the test script. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http

[wtr-general] Re: Security Alert frustration

2008-12-07 Thread Tony
the testscript. By Handling this in a separate process.. you wouldnt have to change your testscript at all. Hope this is the last time Security alert frustrates you .. :) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: How to enter values in text field present in forms

2008-12-02 Thread Tony
Hi Divya, Use the text_field to identify the object directly. ie.text_field(:name, phone).set(record['mobilenumber']) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group

[wtr-general] Re: Not able to identify object

2008-12-02 Thread Tony
Hi Divya, ie.textField(:name, 'phone').set(9123456789) ... looks wrong Should be ie.text_field(:name, 'phone').set(9123456789) or ie.text_field(:name, 'phone').value = 9123456789 You could also use value.. not sure on the others. -Tony --~--~-~--~~~---~--~~ You

[wtr-general] Re: operator not working

2008-12-02 Thread Tony
,wfFrame).table (:id,lkpTradingPartnerType_LkpTblRows) [2] [1].to_s list = ie.frame(:id,wfFrame).table (:id,lkpTradingPartnerType_LkpTblRows) [3] [1].to_s to_s will convert to a string and this should compare properly. -Tony --~--~-~--~~~---~--~~ You received

[wtr-general] Re: Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?

2008-12-01 Thread Tony
Hi Wesley, Maybe the wait method has already finished loading ... and doesnt wait anymore .. You could clarify this by putting a puts statement before text_field. Also you could handle this 'Security Information' outside your code, so that it runs in parallel with your testcode. -Tony

[wtr-general] How to handle Security Alert or Certificate Exception popup

2008-12-01 Thread Tony
The first entry is the Window title, button_id Hence you can add more window titles and button_ids to close. Also each time the popup.lst is updated, the script need not be closed, it picks up the latest window data from the file. -Tony --~--~-~--~~~---~--~~ You received

[wtr-general] Re: How to save a cookie and reload it?

2008-11-11 Thread Tony
firefox or a proxy. And then try setting your cookie with specific details not just the name and value. Here is a good read to read and set cookies - http://www.htmlgoodies.com/beyond/javascript/article.php/3470821 -Tony --~--~-~--~~~---~--~~ You received this message

[wtr-general] Visible method not present for Watir 1.6.2, present in firewatir

2008-11-10 Thread Tony
Looks like the visible method that was present in Watir 1.5.6 is not present any more after installing 1.6.2. Checked out the latest svn trunk and i find the visible method present, but after installing 1.6.2 gem, its not present for Watir, its present for firewatir.

[wtr-general] Re: How can I get the text in the frame text field?

2008-11-02 Thread Tony
oops forgot.. here's the link ... http://wiki.openqa.org/display/WTR/Frames --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-01 Thread Tony
#{element_object}.textContent; with #{element_object}.textContent.replace(/\\xA0/g,\ \); This will return the same in text in ie and firefox. fox.link(:text, 'Login').click will work in both ie and firefox fox.link(:text, ' Login ').click will work only in firefox Thanks, Tony

[wtr-general] Re: Firewatir support for cookies

2008-11-01 Thread Tony
visiting a certain domain etc... -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following

[wtr-general] Firewatir support for cookies

2008-10-31 Thread Tony
; $jssh_socket.send(#{jssh_command}\n, 0) val = read_socket() vals.concat (val.split(\n)) i=i+1 domain = domain[1..domain.length] end return vals end end end Let me know if this has been useful ... sadly i was not able to get any info to do the same in IE. -Tony

[wtr-general] Re: Consult Urgent Soluation for the View Source is Disabled

2008-10-30 Thread Tony
ooops sorry got your name wrong ... should have been Wiston. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting,

[wtr-general] Re: Consult Urgent Soluation for the View Source is Disabled

2008-10-30 Thread Tony
Hi Witson, You could attach to the IE pop using the watir attach command and check the source code or show all elements. Or you could disable the javascript and then check the view source of the ie popup window. (view source is disabled using javascript mostly) -Tony

[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-30 Thread Tony
'watir/options' require 'watir/ie' require 'firewatir' -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting

[wtr-general] Re: Problems using visible

2008-10-29 Thread Tony
? -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org

[wtr-general] Re: Problems using visible

2008-10-29 Thread Tony
Was running the tests for some time .. and suddenly i started getting wrong results for visible. Look like the #{element_object} was returning null sometimes. Dont know why Started working after adding assert_exists Heres the updated code - class Element def visible? assert_exists

[wtr-general] Re: Problems using visible

2008-10-28 Thread Tony
as the wiki page that Željko had mentioned for overriding watir's visible method. Hence the visible method should work the same way in both ie and firefox. Hope this is helpful -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed

[wtr-general] Re: HOW TO GENERATE INPUT TAG OBJECTS

2008-10-21 Thread Tony
) The above will contain an array of all input tag objects. Make changes to the properties as well as the TagName to capture other types of tags. Now call a method of this object using invoke- inpobj.invoke(type) # this will display the attribute (type) for the inpobject. Hope this helps you . - Tony

[wtr-general] Re: Clearing Security Information message box

2008-10-20 Thread Tony
This will stop the warning from showing up. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read

[wtr-general] Re: Test Environment setup : VMWare

2008-10-16 Thread Tony
Hi Natasha, I haven't tried anything like this, but you could create an exe file using rubyscrip2exe. Hence the need to install ruby and watir would not be there. Just run the exe to execute all your testscripts. -Tony --~--~-~--~~~---~--~~ You received

[wtr-general] Re: How to capture data from a web page in Watir?

2008-10-15 Thread Tony
Hi Chintu, If there are many tables with no name ... use the index. var = ienw.table(:index, 1)[1][2].text will give you the 1st row, 2nd column from the 1st table. -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] Re: How to capture data from a web page in Watir?

2008-10-15 Thread Tony
Or you could parse through all the tables $ie.tables.each {|t| t.each do|row| row.each do |cell| #DO something here ... check for some condition etc end end end This should go through all the tables present with each row and column. -Tony

[wtr-general] Re: How to capture data from a web page in Watir?

2008-10-13 Thread Tony
:index if name is not present, [row][column]) -Tony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read