Hi
Have you tried things mentioned here:
http://watirwebdriver.com/javascript-dialogs/?
If you have any JS alerts you need to handle them using methods mentioned
in provided page or you will always get UnhandledAlertException. Such
methods should be used immediately after code/action that
Hi
It is just idea, because I have a lot of issues due that. When you do:
$b.li(:id,'ctl00_AddMenu').hover action, so correct item is hovered, right?I
mean Menu1 is become active
But then, when you do $b.li(:id, 'ctl00_AddAssetFolderMenuItem').click,
menu2 become active and wrong element is
Hi folks
Does somebody know how to access capabilities from
https://code.google.com/p/selenium/wiki/DesiredCapabilities page?
I am able to access capabilities only from first three tables:
require 'watir-webdriver'
caps = Selenium::WebDriver::Remote::Capabilities.ie
=
Thanks Željko, but I knew about that. Sorry, but I formed my question not
in right way.
cucumber -f rerun statement will create only list of failed test cases, but
I need to be able to configure that process, for example add initialization
step (e.g. login into app) to that list.
Proposed
Hi guys
Does somebody using any re-run mechanisms for failed test cases
(not Continuous Integration approach)?
I need something like this:
Feature File
Scenario 1: Login
Given something
.
Scenario 2: Go_somewhere
Given something
.
Some scenario failed after execution
Create
Solution worked like a charm.
Thanks Dan for it
Regarding delays, yes you absolutely right and I also think that is
unacceptable, but I can't do anything, because I just must to run
automation scripts on cheaper devices. Customers have much expensive ones:)
--
--
Before posting, please read
Before going on watir-webdriver, I was using autoit for these operations.
There are some other solutions, but in total you can't do that using only
watir methods
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
yes, you need such intermediate things only if you have two iframes with
absolutely same attributes
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
Just a suggestion
I like to use log4r gem for all logging procedures, of course mixing with
cucumber. It is pretty simple library that has everything that is needed
with all these levels and outputters type of things.
http://log4r.rubyforge.org/
--
--
Before posting, please read
Hi guys
I have next situation: When I click on one of buttons in my application,
page is loading for more than two minutes and raise exception inside of
watir-webdriver click method.
Obviously any waiters (like wait_until something) will not help in this
situation, because exception is raised
Great. Thanks Dan, I will try that solution
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
---
You received this
Have you tried to use waiters or delays?
Something like:
@browser.text_field(:name = 'j_username').wait_until_present
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
I don't think that problem in fact that div is nested, but more that click
event is not working as it should
Try
browser.button(:id, *btnAddNewCustomer*).fire_event(onclick)
or
browser.button(:id, *btnAddNewCustomer*).fire_event(onmousedown)
or
browser.button(:id, *btnAddNewCustomer*).send_keys
Provide more of your code like where you put mentioned statements
Have you tried the same things from irb?
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
try element.fire_event(onclick) or element.fire_event(onmousedown) or
element.send_keys :enter instead element.click
second, it can be absolutely okay that you are not able to click that
button if it under another container. Why automation should able click if
you physically can't do that?
hmm, as far as I know watir-webdriver gives an immediate exception if you
run application using non-default(not 100%) zoom, so my only suggestion
that high zooom and UI looks bigger icon and buttons etc is normal and
actual/required zoom is not normal :)
Just reset your browser zoom settings
You can't do that as watir-webdriver kindly gives you exception.
And that's just SUPER as watir in the past just running the scripts without
any errors and in result days can be wasted until someone noticed that we
had zoom 105% :)
--
--
Before posting, please read http://watir.com/support.
Please provide select list tags for second list as you provided for the
first one
I have only one suggestion at that moment. Probably, you have two select
lists with the same id (MainContent_drpMake) and watir-webdriver taken
first of them that it faced in DOM and that list does not contain
Hmm
Why don't you just wait for all elements that you need to use for your
execute_script method and only after that call it?
like:
browser.element(:attribute, attribute_value).when_present?
after that call your method
--
--
Before posting, please read http://watir.com/support. In short:
b.button(:value, Submit).click
Some not so smart ideas :):
b.button(:value, Submit).fire_event(onclick)
or
b.button(:value, Submit).fire_event(onmousedown)
or between these two actions
b.file_field(:id, messageFile).set(@messagePath)
b.button(:value, Submit).click
try to do some another
But if original window will be closed, so probably you will get an
immediate error and will not be able to do
browser.window(:title = annoying popup).use do
because browser instance will not be initialized anymore
but at least try Željko suggestion
--
--
Before posting, please read
Yes, mostly I am speaking about HTML reports generated by Cucumber, but
absolutely custom (so I can add some extra information like time, build
number) and nice looking.
I have created something like this, but information:
Scenario name Pass
Scenario name Fail
on white background looks like a
I have a lot experience in automating JQuery+Watir and can assure you that
DOM tree can be different for IE and Firefox representations
So could you please check DOM using Firebug in Firefox to make sure that:
div class=ui-dialog-buttonpane ui-widget-content ui-helper-clearfixdiv
Do you have any reasons to move on Ruby 2.0?
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
---
You received this
I would also strongly recommend log4r gem as it is really good tool for
logging.It has really nice outputter types and log levels.
http://log4r.rubyforge.org/manual.html
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
Hmm, strange
Could you perform mentioned steps manually? Is everything work as it
should? (without any file clearing from select window)?
Did you try to put static delay just for test purpose to see that
functionality works properly? (like sleep 10)
--
--
Before posting, please read
try command
gem update
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
---
You received this message because you are
Just curious, maybe someone was working before to create nice looking and
informative reports for cucumber+watir-webdriver scripts.
Not just (because it is not customizable or not so easy to customize):
*cucumber featurename.feature --format html --out report.html --format
pretty*
*
*
And not
Sorry
It depends not even on position, but whether mouse cursor is physically
located inside of browser window, so if I for example have not maximized
window and cursor is situated somewhere (no matter where) but not in
browser window - everything works properly
I appreciate any help
Thanks,
Hi Joe
Thanks for suggestion. I did not do that before, but I just have tried to
click and it doesn't help to drag and drop
Strange, because everything works just perfect for Win8+IE10 and WinXP+IE8.
And, of course it works from irb (for Win7+IE9), because mouse concentrated
on CMD, not on
Nope
I can see how necessary controls (what should be dragged and that where it
should be dragged) just blurring (selected for a second).
Here is an example that I use for testing:
http://dev.sencha.com/deploy/ext-3.4.0/examples/tree/reorder.html
Code:
browser.span(:text,
Could you put more information?
Your OS, fileutil gem version and etc
Have you tried different ruby and gem versions?
I can see something similar, but very old and on linux:
http://www.ruby-forum.com/topic/60495
--
--
Before posting, please read http://watir.com/support. In short: search
If we speak from code similarities prospective:
watir scripts can work on watir-webdriver (sometimes with some code
changes), but if you mean selenium, so probably no, because watir and
selenium have completely different syntax.
--
--
Before posting, please read http://watir.com/support. In
Nope, Firefox 3.6.x, Firefox 15 and IE8 are okay. But for these two
browsers I can see that memory increased for each action (click and etc) on
10-15 mb
Have you tested something on IE9IE10?
Regarding defect (something the same as I have):
I would propose to use something more simpler than excel like structured
text file or xml (or some RDBMS), but if your case is simple enough and
such functionality will be used only once, so I prefer to use xml
--
--
Before posting, please read http://watir.com/support. In short: search
duplicated
On Thursday, February 14, 2013 12:07:52 PM UTC+2, Željko Filipin wrote:
On Thu, Feb 14, 2013 at 11:05 AM, Alex Shtayer asht...@gmail.comjavascript:
wrote:
I understand that this thread/group can be not related to webdriver core
itself, but anyway I want to try my luck here
Why don't
Are you closing browser after each case?
Yes. Code: https://github.com/wikimedia/qa-browsertests
Željko
Are you able access that link?
Because I get 'This repository is temporarily unavailable.' message
'
--
--
Before posting, please read http://watir.com/support. In short: search
Thanks Željko for providing all this information
You give me some nice ideas
Probably, I will need to think about closing browser after each case which
will be very hard to do due my code not so nice as yours and it is created
in such way that it will be mostly impossible to do
Need to read
Thanks a lot. Without you I will play with all of this for weeks
I am sorry, but last question (pretty off topic)
Do we have any alternative for background keyword, but vice verse? I mean
not for pre-initialization, but for post-execution
I know about hooks:
After do |scenario|
end
But due of
option as well, and much easier to use with Ruby than xml.
On Thursday, February 14, 2013 5:09:04 AM UTC-5, Alex Shtayer wrote:
I would propose to use something more simpler than excel like structured
text file or xml (or some RDBMS), but if your case is simple enough and
such functionality
After some test cases executed (only 5-10 minutes of execution which is not
enough for any memory overflow from any point of view) I am getting
No connection could be made because the target machine actively
refused it
. - connect(2) (Errno::ECONNREFUSED)
Sorry, forget to add:
Env:
1. ruby 1.9.2p180
2. watir-webdriver (0.6.2)
3. InternetExplorerDriver server (32-bit) 2.29.0.0
But was reproducible on 2.28.0.0 and 2.27.0.0 too
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
but Watir classic is still only for Internet Explorer or something changed?
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
using regular expressions
e.g.
browser.link(:id, /.*1234.*/)
or xpaths
browser.link(:xpath, //a[contains(@id,'1234')]))
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
I know more about the difference between watir (not classic) and
watir-webdriver
for simple addressing cases like browser.link(:id, 'blah') I do not see any
difference in performance or even watir-webdriver works MUCH faster, but
for really complex DOMs and complex addressing like
Did you get some error? It will be informative if you provide some
exception or something rather than 'it is not working'
Hmm, not sure how such statement can work at all: popup =
$browser.attach($browser.link(:url, $browser.link(:url,
javascript:doNothing()).click))
.attach method is more
If I understand your question correctly, so both of my examples are given
for string case (not for numbers or something) as all DOM values that we
get are strings by default
or did you mean how you can use variable instead exact number?
you can try something like:
browser.link(:id,
yes, that's right. just used to that style :)
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
---
You received this
Željko provided good link, but probably that approach works only for
watir-webdriver
For Watir:
- If that popup window is usual modal window, so you can work with it
through .attach method
- If that popup window is Javascript pop-up, so you do not have any way to
do that, except using other
What do you mean by automate? How to click on the element?
You can use usual method like:
browser.link(:text, Select).click
or if due any reason click method does not work:
browser.link(:text, Select).fire_event(onclick)
or
browser.link(:text, Select).fire_event(onmousedown)
On Wednesday,
Maybe, you can try
browser.div(:*id, idDiv_PWD_UsernameExample*).send_keys blah-blah
or
browser.div(:*id, idDiv_PWD_UsernameExample*).click
browser.send_keys blah-blah
That solution works for me perfectly (for text in divs)
On Saturday, February 2, 2013 8:19:11 PM UTC+2, mc060200778 wrote:
The same exception we get when IEDriver is not installed at all, so does
anybody has situation when driver stopped to respond or hanged up?
It should be reproducible whether you have more or less complex test suite
On Tuesday, February 5, 2013 1:27:16 PM UTC+2, Alex Shtayer wrote:
Env:
1
Input is a parent class for all inputs (like buttons, checkboxes,
text_fields and etc), so if you can't use any sub-class of elements due you
input is a special one (like *input type=image*), you can use just
browser.input and watir will look for all inputs (buttons, checkboxes,
unusual and
Actually you can. And without any problem through usual
browser.window(:title=Browser title).use do
code
end
or even to sub-window
browser.window(:title=Browser title).use do
code
browser.window(:title=Browser title).use do
code
browser.window(:title=Browser title).use do
code
On watir through .attach method
on watir-webdriver through browser.window(title).use
On Friday, February 1, 2013 6:19:27 PM UTC+2, mc060200778 wrote:
Hi,
I wanted to know How to run watir script on an already opened Chrome
Browser.
I dont want to open new Chrome Instance. THe web
Okay, so provide HTML that you see in IE developer tool
$ie.frame(:name,centent).present?
= true
but
$ie.frame(:name,centent).text_field(:name,validateDealer).present?
flase
so, maybe you have one more sub frame?
but it is really not good (it seems that frame is empty or what)
irb(main):015:0
I automate such kind of things through AutoIT due pop-ups are not usual
window and cannot be attached or something
On Tuesday, July 17, 2012 8:32:27 AM UTC+3, Agung Surya wrote:
Hi,
I'm having a problem regarding access the new pop up in IE 9 using Watir
This pop up regarding the save or
General impression:
I created hundreds of cases for different functionality (in some cases
really complex one) on watir classic and firewatir. After that I spent last
six months to migrate everything on one platform (watir-webdriver) as it
helps me keep code for all browsers much more
Once more
http://code.google.com/p/selenium/wiki/ChromeDriver
Download and copy mentioned file for example in:
C:\Ruby193\bin
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
Refer to:
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
I am using solution #9 for more than 3 years and it works just fine
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
Env:
1. ruby 1.9.2p180
2. watir-webdriver (0.6.2)
3. InternetExplorerDriver server (32-bit) 2.29.0.0
I am running usual functional tests (that worked perfectly on usual watir),
so it is almost 100% no dependencies on what I test, but more what I use
for testing.
Issue can be reproduced on FF
61 matches
Mail list logo