1 Dec 2003 04:27
Re: [TFUI] Re: Question about Web Software Design
Phlip wrote:
>But I must point out a technical problem with the wtr I started to use.
>
> nodeName = '-HTML-BODY1-TABLE2-TBODY1-TR1-TD1' +
> '-TABLE1-TBODY1-TR1-TD1-FORM1-INPUT1'
>
> saveButton = dv.getNodeWrapperFromPath(nodeName, root)
> assert_equal('INPUT1', saveButton.name)
>
>I didn't read >all< of the source, but that appeared to be how one reaches
>into a page and grabs a control.
>
>
This is only a requirement if there's no named controls in the form.
cliec originally started to scratch an itch I had to screen-scrape my
bank balances, and the html my bank used didn't have any named items for
me to access via a normal way -- so this was my only recourse I could
come up with.
The readme (currently only in the CVS of the RubyForge project) has some
examples along the lines of what you put in your post:
require 'cl/iec'
VISIBLE = true
iec = ClIEController.new(VISIBLE)
iec.navigate('http://www.amazon.com')
form = IEDomFormWrapper.new(iec.form)
(Continue reading)
See
RSS Feed