On Tue, Sep 1, 2009 at 12:44 PM, GJHmf graham.harb...@webroster.net wrote:
span class=disabled prev_page« Previous/span
Try this:
browser.span(:class, disabled prev_page).click
Željko
--
http://watirpodcast.com/
--~--~-~--~~~---~--~~
You received this message
Thanks for these Željko,
Both work great in locating and verifying the special character is
there with .span.
Oddly having never used .span before, I'll be using the :class
suggestion to verify the link I have is disabled. Knowing I can't
currently verify literal link text '\253 Previous' (as
While the .span suggestion is a short term solution in my test
environment for a disabled :class, for future reference I would still
like to know if there's any possible way of verifying '«' and '»'
characters in literal text on a page; as if I can verify a link exists
with that text, I can check
On Tue, Sep 1, 2009 at 2:57 PM, GJHmf graham.harb...@webroster.net wrote:
if there's any possible way of verifying '«' and '»'
characters in literal text on a page
browser.text.include?(\253 Previous)
Željko
--~--~-~--~~~---~--~~
You received this message
How annoying; I thought I had tried and failed on that very solution,
now it works. My hands are up, it must have been a typo of some sort
on my part.
Once again, thanks Željko.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Also, you can get around the special character (so you dont have to
look each one up) by using a regex and the regular text:
browser.text.include?(/Previous/)
browser.span(:text,/Previous/).click
On Sep 1, 6:52 am, GJHmf graham.harb...@webroster.net wrote:
How annoying; I thought I had tried