watir

html table to array ruby

i am screenscraping using watir and i download a xls file. when i open this file in notepad, i find that its just a bunch of html tables. is there a any function or gem that will convert this page into a bunch of arrays. any ideas is appreciated. ...

How do I get at image title attributes in Watir?

Given the following HTML code (which, I realise, sucks, but that's not something I can currently solve): <img height="64" width="64" class='list_item' src="/img/icon/first.jpg" title="This is the first item::Completed the item "I did this first"" alt="First" /> gives me a result of (this is an image.to_s) name: type: id: value: disa...

Define page URL in Taza

I am using Taza, and I can not find a way to define page url. I am looking at wiki, rdoc and source. I have found that WatirCraft can do it, but I am not sure if it is not implemented in Taza, or if I am doing something wrong. For: require 'rubygems' require 'taza/page' module Ecs class LoginPage < ::Taza::Page url "login" e...

Using watir to control multiple firefox instances

I'm using watir in a Windows environment with FireFox 3.6 via FireWatir. I can successfully run a single watir test without issue. I need to be able to either: a. Create and manage multiple browser instances or tabs from a single test script or b. Run two test scripts simultaneously from separate instances of ruby Currently attem...

How to get Watir to return actual HTML when site redirects?

When I read out the HTML returned by Watir, it gives me a page directing me to come back on a browser through my Mac or PC. It seems I am being redirected by a user agent given through Watir. I thought I was driving the browser with Watir, but this doesn't seem to be the case. ie = Watir::IE.new ie.goto "http://www.apple.com/safari/...

Watir, How can i fetch the errors it displays after running a test script and place it on a file

Hi, Im new to watir and running scripts from it. Just want to ask if how can I get or extract the error messages Scite displays on the left panel and import it to a textfile? or is it really possible to do? Thanks. ...

Firewatir: Firewatir dynamic drop down issue

I am having any issue with selecting any item from the drop down. Below is the HTML from our site. The HTML looks like this <div class="x-form-field-wrap x-trigger-wrap-focus" id="ext-gen157" style="width: 170px;"><input type="hidden" id="parentEntity" name="parentEntity" value=""><input type="text" id="cmbParentEntityId" autocomplet...