# Do the basic watir initialization, then you should be able to get
away with something like this.
links = browser.links.to_a
links.select! {|link| link.href =~ /yp.kd.com/} # Omit all links to
different domains
puts "Writing #{links.length} links to links.txt"
# Write each link to the file
File
Could anyone tell me how i can find all links on a page and record
that links in a text file in my computer.
all links include the following phrase..
yp.kd.com
now I would like to retrieve URL of all links containing above
(yp.kd.com) in the url, and record that in a text file..
also, I would l
Yes I have the latest versions. Our app is on a JSP page, could that
be causing the issue? It seems I can't access most elements on JSP
pages. Trying to find a good example with the same error messages...
in the meantime this page (http://publib.boulder.ibm.com/infocenter/
wasinfo/v6r0/index.jsp) c
Hi Guys,
When we run our tests on Hudson, randomly a few tests fail with the
following error. When we run these tests locally the next day they all
pass. It is not the same tests that fail everyday. I get this error on
different tests. Any ideas what this is or if is a known issue?
It might not be
ff.link(:id , 'cwc_menu_local:ROOT.Find a Request-anchor').click This
should have worked. Can you check if the link you are trying to click is
inside a frame!!
On 13 September 2011 11:27, Hari wrote:
> I am trying to click on a text inside a span in my web page. But
> it is not clicking it. whe
I am trying to click on a text inside a span in my web page. But
it is not clicking it. when i try to flash it. it flashes.
I also tried to user fire_event("onclick"), still it is not clicking
it.
ff.span(:id, 'cwc_masthead_username').click
puts ff.show_spans()
ff.spans.each{|s|puts s.to_s}
Hi folks,
i have an error in my scripts that unable to find the solution, hope
someone can help. Please refer below for my case:
I have a JS popup that i should click on 'OK' but when i put
click_no_wait before the check_for_popups() got called, it gives me
this error
>> `method_missing': undefin