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)
form.url = 'Baby'
form.invoke('field-keywords').value = 'rattlesnake'
form.submit
iec.wait
You can see the full readme.txt online here:
http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/wtr/cliec/doc/readme.txt?rev=1.1.1.1&cvsroot=wtr&content-type=text/vnd.viewcvs-markup
--
Chris
http://clabs.org/blogki
http://cministries.org/blogki
-=-=-=-=--=-=-=-=-=-=-
Free solo piano album (mp3)
http://cministries.org/cstudios/blackandwhite.htm
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/nhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe@...
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
RSS Feed