mechanize question
From: Charlie (cji_work_at_yahoo.com)
Date: 06/19/04
- Previous message: Tulan W. Hu: "LWP, Apache 1.3.31, & basic credential"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Jun 2004 15:33:42 -0700
Hi forks,
I just have a question to ask about the Mechanize Module.
These days I am working on the automate testing for some web
applications. The idea is to act as a general user to play with our
web application to do any kind of possible work. I am using the
Mechanize to create that user's activities and so far it works OK.
The problem I have is, from time to time, for that web applications
some features may be added or de-listed. For example, an existing
table it coulde go from the second one to become the second one, or a
10th link becomes 11th. Such things happen a lot during the
development cycle.
Since my code is hard coded such as:
" ... $mech->form(1); ... $mech->follow_link(10); ..., "
I have to keep modifying the code again and again, to match the
changes.
IT IS REALLY A PAIN !!!
So the question I have is is there a way to solve these issue. Any
time when I reach a new page, there is way for me to know the list of
forms, tabs, links, tables, etc, and I can just call them by the name
associated with ? ( if there is no name, ??? ).
Thanks a lot for the tips.
Charlie
- Previous message: Tulan W. Hu: "LWP, Apache 1.3.31, & basic credential"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]