Hi Bret,
I thought that Watir 1.6.2 did not support attach(). I remembered
reading in the 1.6.2 release notes that attach wasn't supported so
this was the reason I held back on 1.5.6 before moving to 1.6.5.
Please correct me if I've misinterpreted something here.
Thanks.
Derek W.
On Dec 3, 6:4
Thank you John,Ethan.
it is my bad..the text is displayed inside the frame.
$ie.frame(:name,"Main").text.include? is working
On Dec 2, 3:48 pm, mohe wrote:
> 'check' variable is a string.actually i need to verify some text in
> all the pages.so i wrote a function and pass the text through the
> v
Try:
$ie.text.include?("#{check}")
-Original Message-
From: mohe [mailto:j.mohanpra...@gmail.com]
Sent: Wednesday, December 02, 2009 1:49 PM
To: Watir General
Subject: [wtr-general] Re: regular expression in $ie.text.include? issue
'check' variable is a string.actually i need to verify
'check' variable is a string.actually i need to verify some text in
all the pages.so i wrote a function and pass the text through the
variable "check".i want to use the regular expression for the text as
it is failed in some pages even the particular text is displayed in
page.
On Dec 2, 2:59 pm, E
String#scan is not really appropriate for just testing whether a string
matches a regexp (it is certainly possible, but is overkill). the =~
operator should suffice:
def verify_field(check,result)
if $ie.text =~ Regexp.new(check)
$dt.WriteData("#{result}","Sheet1", "Pass")
else
$dt.WriteDa
try ie.text.scan(regexp)
if ie.text.scan(/foo/).length > 0
...write some data...
end
btw, this isn't a watir issue, it's a ruby issue. IE#text just returns a string
and a string's include? method doesn't accept a regex as an argument, at least
my installed ruby version doesn't support it.
--
regular expression is not working in $ie.text.include?.i am getting
error message "`include?': can't convert Regexp into String
(TypeError)" for the following code.any idea please.?
def verify_field(check,result)
if $ie.text.include?(Regexp.new(check))
$dt.WriteData("#{result}","Sheet1", "
regular expression is not woking in text.include? and i am getting the
error message "`include?': can't convert Regexp into String
(TypeError)". any mistake in below code.?
def verify_field(check,result)
aa=Regexp.new check
if ($ie.text.include?(aa))
$dt.WriteData("#{result}",
regular expression is not woking in function.any mistake in below
code.?
def verify_field(check,result)
aa=Regexp.new check
if ($ie.text.include?(aa))
$dt.WriteData("#{result}","Sheet1", "Pass")
end
end
--
You received this message because you are subscribed to the Googl
I think Jari removed the activesupport dependency from watir/firewatir
1.6.5. Could this be something that was missed?
Bret
On Nov 25, 6:04 pm, joshmoore wrote:
> Ethan, that fixed it thanks!
>
> Josh
>
> On Nov 25, 2009, at 11:29 PM, Ethan wrote:
>
> > String#demodulize is an activesupport meth
Watir also has a -b option, which does what you are seeing.
You can use rspec's --backtrace option to avoid this behavior.
On Dec 2, 11:52 am, jw wrote:
> Is this intended behavior? The window is invisible, when I look in
> Process explorer and try to bring IE's window to front it says no
> vis
sorry:
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
watir (1.6.2)
On Dec 2, 11:52 am, jw wrote:
> Is this intended behavior? The window is invisible, when I look in
> Process explorer and try to bring IE's window to front it says no
> visible window found.
> Oddly, the window becomes vi
Is this intended behavior? The window is invisible, when I look in
Process explorer and try to bring IE's window to front it says no
visible window found.
Oddly, the window becomes visible when calling enabled_popup. This is
about 20 seconds into the test, so it's not window lag and the test is
u
Another solution would be to use
tbl = ie.frame(:id,'ReportFramectl144').frame(:id,'report').table
(:class, /a3/)
This should cover both cases.
On Dec 1, 10:24 am, Steve Hamlett wrote:
> I'm using Watir to automate the testing of a report generated by MS
> SQL Reporting Services. The report g
One thing you might try, in order to track things down, would be to
try running your tests with with Watir 1.6.2.
If you do this, you should manually install firewatir 1.6.2 also (gem
install firewatir -v 1.6.2). And then uninstall any newer watir gems
(if any).
Bret
On Dec 1, 2:41 pm, DerekW w
The actual user action would be to click and hold the mouse over the
slider and then drag the slider to the desired location (i.e. the px
location). Not sure if you can do this via watir but wanted to see if
it is possible.
Thanks
QAguy
On Dec 2, 7:54 am, Željko Filipin
wrote:
> On Tue, Dec 1, 2
On Wed, Dec 2, 2009 at 5:41 AM, shradha_Dalvi wrote:
> Kindly let me know,does watir works for Opera browser.
Watir does not support Opera. There is plan to support Opera in Watir 2.0,
but we do not know when it will be released. Watir 2.0 source:
http://github.com/jarib/watir2
Željko
--
wati
On Tue, Dec 1, 2009 at 10:26 PM, QAguy wrote:
>
>
> I need to set the style value above to a value greater than 0px.
Watir is _just_ a browser driver. That means it drives the browser like a
real user would. How would you do it manually?
Željko
--
watir.com - community manager
watirpodcast.com
Watir 1.6.5 was mentioned in Ruby5, episode #31:
http://ruby5.envylabs.com/episodes/32-episode-31-december-1-2009
Željko
--
watir.com - community manager
watirpodcast.com - host
--
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this
The working core is there. Still work is done for building the API on
top of it. You can watch the project from Github
http://github.com/saivenkat/chromewatir.
--Sai
On Dec 2, 12:42 pm, shradha_Dalvi wrote:
> Hi sai,
> Have you done with Chrome watir updation?
--
You received this
20 matches
Mail list logo