Please find the script below:
require 'watir'
ie=Watir::IE.new
ie.goto("www.makemytrip.com")
ie.link(:href,"http://www.makemytrip.com/international-
flights/").click
ie.text_field(:id,"departure_0").set("Delhi,India-Indira Gandhi Intl
(DEL)")
ie.text_field(:id,"arrival_0").set("Chicago,US-All air
Hi,
I'm new on here and apologies if this is not the done thing!
I specialise in OSS recruitment for Computer People. I have a number
of vacancies in Watir and other OSS related testing tools.
Please reply to matthewwill...@computerpeople.co.uk for more details
Thanks
Matt
--~--~-~--
On Fri, May 8, 2009 at 3:28 PM, Matt
wrote:
>
> Hi,
>
> I'm new on here and apologies if this is not the done thing!
>
> I specialise in OSS recruitment for Computer People. I have a number
> of vacancies in Watir and other OSS related testing tools.
>
> Please reply to matthewwill...@computerpeo
Hi,
I have used following method to capture the image of a web page
screen_capture("keywords.jpg",true)
Then I have captured the one more page.
Now I want to compare both the pages.
What method can I use?
Also how can I compare a specific portion of a page with other page?
Please update me on
it did work well on my machine, i was able to see the results. Not sure what
you are not able to do?
- Angrez
On Fri, May 8, 2009 at 2:53 PM, Isabel wrote:
>
> Please find the script below:
>
> require 'watir'
> ie=Watir::IE.new
> ie.goto("www.makemytrip.com")
> ie.link(:href,"http://www.makemy
It is working for me as well. Did u get any error message after some
time?
Regards
Siva Phaneednra Krapa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to
Instead of comparing the image to image, you can use MD5 key comparision.
Here is an example.
require 'digest/md5'
first = Digest::MD5.hexdigest(File.read("keywords.jpg"))
second = Digest::MD5.hexdigest(File.read("NewImage.jpg"))
Compare that two md5 hash.
Michael
__
m gettin this error while tryin with script
any clue why
irb(main):001:0> require 'watir'
=> true
irb(main):002:0> include Watir
=> Object
irb(main):003:0> ie=Watir::IE.new
=> #,
@error_checker
#],
@defaultSle
ime=0.1, @activeObjectHighLightColor="yellow", @enable_spinner=false,
@url_li
[], @lo
One thing is for sure...
the reason you are not able to go to other page is that WATIR is not
able to access the frames,
reason being security reasons of desktop.
I am able to find this for reference
You may try one or more of the following methods to resolve this
issue:
Navigate directly to the
If I have a cell with the following (05-07-2009 09:00 AM)) and I only
want to validate the Date and AM or PM, we use wildcards to represent
the data we doen't want to compare. Using the following function.
excel_value = 05-07-2009 * AM
object_text = 05-07-2009 09:00 AM
def format_object_tex
I would convert your wildcard string to a regular expression and then
use that for the comparison.
Bret
Moochie wrote:
> If I have a cell with the following (05-07-2009 09:00 AM)) and I only
> want to validate the Date and AM or PM, we use wildcards to represent
> the data we doen't want to com
Like this?
excel_value = "05-07-2009 * AM"
regxmyvar = Regexp.new excel_value.gsub("*",".*")
-Original Message-
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord
Sent: Friday, May 08, 2009 12:57 PM
To: watir-general@goog
Given that I have the actual = '05-07-2009 09:00 AM' string
representing a date, time and PM or AM suffice
And I want to verify the date is correct
And I want to verify the suffix is correct
But I don't really care about the time
When I use a matcher perhaps like this:
matcher = /(\w{2}-\w{2}-2009
I am using:
Ruby 1.8.6
Watir 1.6.2
IE 7.0
Firefox 3.0.10
I am trying to grab information from a link for further processing. I
copy the link to a variable, mylink = obj.link(:index,1), and then use
mylink.html to get the html which I then parse for the text I am
interested in.
The 'html' method
Hello guys, please help me with this.
My HTML looks like this...
I tried "ie.span(:text, "Manage Folders").click" but link does not go
to desired page.
When I use flash on this("ie.span(:text, "Manage Folders").flash") it
actually flashes the exact "Manage Folders" text.
puts ie.div(:id,'divSiteM
Hi Satish!
Have you tried a regular expression?
ie.span(:text, /Manage Folders/).click
-Tiffany
On May 8, 3:11 pm, satish wrote:
> Hello guys, please help me with this.
> My HTML looks like this...
> I tried "ie.span(:text, "Manage Folders").click" but link does not go
> to desired page.
> Wh
This is a known issue.
http://jira.openqa.org/browse/WTR-260
I don't know of a solution.
Bret
Greg wrote:
> I am using:
> Ruby 1.8.6
> Watir 1.6.2
> IE 7.0
> Firefox 3.0.10
>
> I am trying to grab information from a link for further processing. I
> copy the link to a variable, mylink = obj.lin
17 matches
Mail list logo