Thursday, January 18, 2007

FireWatir 1.0.1 released

FireWatir 1.0.1 is released. New features are added to this release like:
1. Cross platfrom support.
2. Frames and forms support.
3. Starting Firefox manually (currently works only on windows).

For more information on release please visit:
http://code.google.com/p/firewatir/wiki/ReleaseNotes

For downloading FireWatir and installation guide please visit:
http://code.google.com/p/firewatir/

3 comments:

Paul said...

Hi,

thank you for your work with FireWaitr. I do not want to get a google account - so find a few suggestions for elements_by_xpath and text() here:

Best
Paul



$jssh_socket.send("#{element_object}.textContent\n", 0)



def elements_by_xpath(xpath)
rand_no = rand(1000)
jssh_command = "var element_xpath_#{rand_no} = new Array; "
jssh_command += "var result = #{DOCUMENT_VAR}.evaluate(\"#{xpath}\", #{DOCUMENT_VAR}, null, #{ORDERED_NODE_ITERATOR_TYPE}, null);
var iterate = result.iterateNext();
while(iterate)
{
element_xpath_#{rand_no}.push(iterate);
iterate = result.iterateNext();
}
element_xpath_#{rand_no}.length;"
# Remove \n that are there in the string as a result of pressing enter while formatting.
jssh_command.gsub!(/\n/, "")
#puts jssh_command
$jssh_socket.send("#{jssh_command};\n", 0)
result = read_socket().to_i
#puts result
elements = Array.new
for i in 0..result - 1 do
elements[i] = Element.new("element_xpath_#{rand_no}[#{i}]")
end

return elements;
end

Angrez Singh said...

Thanks a lot for your suggestions

- Angrez

Anonymous said...

Thank you for your work.

Can you provide a PPC version of the jssh-xpi add-on? It took me a night to find out that the plugin only runs on INTEL macs...:-)

Or at last a note that it only works for INTEL macs...

best regards

Michael