Thank you George.
onmouseover event is working for the www.cognizant.com. I am working
on a intranet site created in sharepoint. onmouseover event does not
work for the menus there. the particular menu gets highlighted without
displaying the submenu items. Do you have any idea how to deal with
it.
This worked for me:
# using an open browser pointed to
# http://www.cognizant.com/html/home.asp
browser = Watir::IE.attach(:title, /Cognizant/)
browser.link(:id, 'industries').fire_event('onmouseover') # displays
menu
browser.link(:title, 'Banking & Financial Services').click
On Apr 29, 5:10 a
Hello, John,
If you're not comfortable with installing another library, you could use
standard Ruby functions to achieve it.
p @url.split("/").last.split("&").first.gsub("index?ticket=", "")
It's ugly and could break, so don't rely on it :)
Good luck,
FK
On Thu, Apr 29, 2010 at 2:33 PM, John
Hi ChuckD,
I got this working with REXML:
xml_test.rb
=
def get_node_value(tag, path)
require 'rexml/document'
include REXML
Dir.chdir(path)
file = 'test_file.xml' # file you're working with
begin
doc = Document.new(File.new(file))
doc.each_element('//' + tag) { |node| p
Thanks, Felipe. I'll give that a try. I was curious if there are any
native methods in Watir I could use, like xpath?
Cheers,
John
On Apr 29, 9:57 am, Felipe Knorr Kuhn wrote:
> Hello, John,
>
> You can use the Addressable library (http://addressable.rubyforge.org/ or
> gem install addressable )
Hello, John,
You can use the Addressable library ( http://addressable.rubyforge.org/ or
gem install addressable ) then use the following:
@url = Addressable::URI.parse(@ie.url)
@ticket = @url.query_values["ticket"]
p @ticket
Hope that helps,
FK
On Thu, Apr 29, 2010 at 1:35 PM, John Williams
I'm using Watir in IE to test a website where many URLs are
dynamically generated with a unique ticket parameter. How do I grab
this ticket parameter from the URL once I get to the page?
For example, when I use Watir to go to a URL like:
http://www.mydomain.com
I end up on a page with dynamicall
Hi Damien!
Rows in a table typically contain elements that you click on rather
than the clicking on the row itself. I see you're firing the
javascript event, but you're not actually calling the click method on
any element. Have you tried to click on a link or span of text
first? Here's an examp
Hi,
I try to automate some tasks with Watir but I have a problem with a
functionnal scenario. How to click on a row in a table. The row is
flashing in yellow color, but no click event
I have try this without success :
popup.frame("autoCompleteDialogIF").frame("availFrame").tables.each do
|t|
f
Yes this is related to watir. I am parsing the XML inside a watir
script to drive data collection.
On Apr 28, 3:26 pm, Željko Filipin
wrote:
> On Wed, Apr 28, 2010 at 5:12 PM, ChuckD
> wrote:
>
> > I can read all the XML in my file except this
>
> Is this related to Watir? There are probably bet
Hi,
Still waiting for a way out of this FireWatir issue.
-Betsy
On Apr 21, 2:51 pm, Željko Filipin
wrote:
> On Wed, Apr 21, 2010 at 11:35 AM, Betsy wrote:
> > include FireWatir
>
> Remove this and let me know if there is any improvement.
>
> > The problem with this issue is that it does not co
On Apr 29, 4:05 pm, Tester wrote:
> Hi
>
> I am trying to generate watir script for web application with CSS/
> Javascript menus. on giving show_links, showAllObjects drop down menu
> links does not get displayed. After i place the mouse of the menu if i
> give ie.show_links all links get displa
Hi
I am trying to generate watir script for web application with CSS/
Javascript menus. on giving show_links, showAllObjects drop down menu
links does not get displayed. After i place the mouse of the menu if i
give ie.show_links all links get displayed.
I tried using fire_event - onmouseover,onmo
13 matches
Mail list logo