My title for this is terrible but I can't think of a better way to word it
right now.
I have a web screen where if you click a submit button without filling in
fields, 9 validation error messages appear. I have defined a page object
with these elements as a collection:
smalls :errors, class: [
On Friday, November 3, 2017 at 10:25:06 AM UTC-5, Titus Fortner wrote:
>
> Call the style('left') method after your sleep to see what the correct
> final value is. I didn't actually test it.
Yep, just played around with it some more. So the trick is that the style
returns the pixels. I can do
On Friday, November 3, 2017 at 9:45:07 AM UTC-5, Titus Fortner wrote:
>
> You have to look at what is different in the condition you want vs the
> condition you don't.
> In this case you want to wait for `element.div(id: 'areas').style('left')
> == '-50em'` (or something)
> If you have open the
On Friday, November 3, 2017 at 8:22:34 AM UTC-5, rajagopal...@gmail.com
wrote:
>
> browser.element(:id, "navlist")
>
>
> Is it a pop up?
>
> And are you aware that `set!` function is using JavaScript not Selenium
> send_keys?
>
It's not a pop-up, no. That script will actually run against it a
I have a Watir script that works against one of my sample sites. I'll
provide that below. There's one part where I have to put a `sleep`
statement. I'm curious how Watir can be used to handle this without the
sleep statement. All of these will not work:
browser.element(:id, "navlist").wait_unt
Okay, figured some of it out.
Lots of gems were causing issues. I had to have some folks uninstall gems
like commonwatir, watirsome, watir-scroll, watir-dom-wait and so on. Once
all of those were uninstalled, and watir and watir-webdriver were removed,
then I could have them install just watir.
Well, something is definitely odd. I had the folks using Watir clean out
any of their watir and watir-webdriver gems and now when they just install
Watir 6, they get this:
LoadError: cannot load such file -- watir/loader
That's just when trying to require watir itself.
I'll keep digging and re
You can see this if you just go into IRB. Using watir-webdriver 0.9.9:
>> require "watir-webdriver"
>> Watir::Container.instance_methods
You will get an array. Starting as such:
=> [:section, :menuitems, :object, :meter ...
Now try this with watir 6.0.2:
>> require "watir"
>> Watir::Container.
I'm seeing a lot of tools break that are updating to just say `require
"watir"`.
In all cases, I've traced it to lines like this:
Watir::Container.instance_methods
Yet I see that this does appear to exist in Watir 6
(http://www.rubydoc.info/gems/watir/Watir/Container).
Has anyone else had
Greetings all.
For awhile I've been playing around at constructing a wrapper tool for
Watir-WebDriver. It's a fairly simple project called Symbiont:
https://github.com/jnyman/symbiont
I even managed to get this adopted within the Health Services Global
Business Unit at Oracle, which somewhat s
Jari: Thanks for the reply.
So it sounds like with Watir I'll have to preface all actions with
that frame bit. For example, I would have to use this:
When /^I fill in "([^"]*)" with "([^"]*)"$/ do |field, value|
@browser.frame(:id => "ModalDialogContent").text_field(:name,
field).when_present.s
I just wanted to check if it's a known issue that switchTo.frame does
not appear to work with Watir-WebDriver. This does appear to work with
Selenium-WebDriver.
Here's the command I try in Selenium that does work:
@browser.switch_to.frame("ModalDialogContent")
I try a slightly modified verison
Jari: Thank you so much for your response. Just having you mention
browser.driver.switch_to.alert also then let me see that I could get
the text from the JavaScript alert as well (with
browser.driver.switch_to.alert.text). I can't thank you enough for
this information. Much appreciated.
- Jeff
--
Hey all.
I've tried searching for this on my own but looking for specific
solutions in Watir or Watir-WebDriver is often a needle in a haystack
venture. In this case, I have an application that has a JavaScript
alert that pops up when an OK button is clicked. I need to get the
message in the alert
Hi all. I'm currently using watir-webdriver and I'm trying to find
text that will appear on a web page. I know you can do this:
browser.text.should include("my text")
However, that won't accept a regular expression. I found that
something called Watir::Simple lets me do something like this:
asse
15 matches
Mail list logo