I've solved this problem... I had a little error on the path of the frame that i have to open to reach the form.
Now the form is being opened, but i can't find the login text box.
Can you help me @Rabbit?
Here is the code and the text message: -
-
def login(self):
-
url = self._baseUrl + '/webapp/commerce/safilo/jsp/logon.jsp?lng=E&cpy=10'
-
self._br.open(url, timeout=30.0)
-
self._br.select_form(name='logon')
-
print 'entrou'
-
self._br.form['login'] = self._username
-
self._br.form['password'] = self._password
-
self._br.submit()
-
-
if self._verbose: print 'Login successful.\n'
-
-
self.last_logged_in = datetime.datetime.now()
-
-
Traceback (most recent call last):
-
File "E:\billy\Projects\GlassInteg\trunk\src\run.py", line 90, in <module>
-
go()
-
File "E:\billy\Projects\GlassInteg\trunk\src\run.py", line 39, in go
-
ss = SafiloSupplier(updateBrands=True)
-
File "E:\billy\Projects\GlassInteg\trunk\src\GlassInteg\Supplier.py", line 283, in __init__
-
if login: self.login()
-
File "E:\billy\Projects\GlassInteg\trunk\src\GlassInteg\Supplier.py", line 307, in login
-
self._br.form['login'] = self._username
-
File "build\bdist.win32\egg\mechanize\_form.py", line 2780, in __setitem__
-
File "build\bdist.win32\egg\mechanize\_form.py", line 3101, in find_control
-
File "build\bdist.win32\egg\mechanize\_form.py", line 3185, in _find_control
-
mechanize._form.ControlNotFoundError: no control matching name 'login'
-
3 2549
@Rabbit Thank you for your help! ;)
File "build\bdist.win32\egg\mechanize\_form.py", line 3185, in _find_control
mechanize._form.ControlNotFoundError: no control matching name 'login'
It appears there is no "login" on the form you are accessing. Print it to see what you have as the login page is apparently at a different location.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: sammmista |
last post by:
hello experts,
Plz dont treat this as another newbie query , i did my homework but
still getting nowhere :( :( :(
Trying to learn PHP on Fedora core 1 (PHP 4.3,MySQL,HTTPD).Unable to
post data...
|
by: Nancy |
last post by:
Hi, Guys,
I am new to Python. I am trying to following the example on
http://www.modpython.org/live/current/doc-html/tut-pub.html
In this example, it gives the following html code,
<form...
|
by: Jim Adams |
last post by:
My ASP.Net (VB.Net) app needs to display a filled in form to a web
user from the following:
a) read a form files dynamically from disk (e.g. form1.html)
b) read its corresponding XML file (e.g....
|
by: Samuel Shulman |
last post by:
I would like to refer to HTML elements from my ASP.NET code do they have to
be server side
If yes then I can I set their html name for the POST method
Thank you,
Samuel
|
by: hugo |
last post by:
Hi,
I have a function that I call from form fields using the OnKeyUp
function to replace special caracters. Once this function has been
called, it does not set the focus on the form field where...
|
by: burtell |
last post by:
Previously, I wrote:
I have designed an HTML form. The name of each element corresponds to a heading in an Access database on my computer. Is there a way for me to program the HTML form to send the...
|
by: Manoj Mittal |
last post by:
hi
I want to access the Html control i.e Textbox .which is in seperate file and want to access in seperate ASP.NET file ..
how I can access the control of Html control in ASP.NetPage..
...
|
by: johnacooke |
last post by:
I have a HTML form that is generated in part by PHP. The action
attribute on the form tag calls itself, so that I can validate the
fields without using any other form of code like Javascript to...
|
by: dhtml |
last post by:
I have written an article "Unsafe Names for HTML Form Controls".
<URL: http://jibbering.com/faq/names/ >
I would appreciate any reviews, technical or otherwise.
Garrett
--...
|
by: Keith Pastorek |
last post by:
So I have a form that has an array passed in. When generating the online form, I loop through the array and create the same text boxes for each value in the array. So my text boxes (relating to...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |