Skip to content

Instantly share code, notes, and snippets.

@morgajel
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morgajel/5aefa9a7e483d77140d2 to your computer and use it in GitHub Desktop.
Save morgajel/5aefa9a7e483d77140d2 to your computer and use it in GitHub Desktop.
The Issue:
Submitting a form fails when the action of the form does not have a protocol.
Note that this exact same script works in 0.9.1, but fails in 1.8
<form name="aspnetForm" method="post" action="login.aspx" id="aspnetForm">...
</form>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment