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
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
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
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
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
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
= 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
/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
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
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
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
@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
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
, 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
(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
://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
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
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
(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
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
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
\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
.
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
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
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
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
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
(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
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 = '';
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
/
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
. (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
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
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
).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
.. 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
- 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
.. 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
(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
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
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
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
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
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
,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
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
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
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
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.
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
#{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
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
;
$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
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,
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
'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
?
-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
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
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
)
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
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
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
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
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
: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
65 matches
Mail list logo