ctb / twill-legacy

A simple command-line Web browser, for testing and Web automation.
https://twill-tools.github.io/twill
58 stars 28 forks source link

Submitting a form fails when the action of the form does not have a protocol. #9

Open morgajel opened 9 years ago

morgajel commented 9 years ago

Note that this exact same script works in 0.9.1, but fails in 1.8

twill-sh 

 -= Welcome to twill! =-

current page:  *empty page* 
>> go https://www.example.com/someapp/login.aspx
==> at https://www.example.com/someapp/login.aspx
current page: https://www.example.com/someapp/login.aspx
>> find "Example Dot Com"
current page: https://www.example.com/someapp/login.aspx
>> formvalue . UserName 'twill'
current page: https://www.example.com/someapp/login.aspx
>>  formvalue . Password 'secretPassword'
current page: https://www.example.com/someapp/login.aspx
>>  submit butlogin
Note: submit is using submit button: name="ctl00$MainContent$butlogin", value="Login"

ERROR: Invalid URL 'login.aspx': No schema supplied. Perhaps you meant http://login.aspx?

current page: https://www.example.com/someapp/login.aspx

Source form:


<form name="aspnetForm" method="post" action="login.aspx" id="aspnetForm">...
</form>
Cito commented 11 months ago

Closing since this repository is archived and a rewrite is available here.