How to press the twill button?

I want to go to the site and click on the button or link to enter the system. But login does not use a form.

I think the login procedure uses javascript.

Login for username:

<input tabindex="1" class="dxeEditArea_Office2003Blue dxeEditAreaSys" onkeydown="aspxEKeyDown('ctl00_wucLogin1_txtUID', event)" name="ctl00$wucLogin1$txtUID" onkeyup="aspxEKeyUp('ctl00_wucLogin1_txtUID', event)" type="text" id="ctl00_wucLogin1_txtUID_I" onblur="aspxELostFocus('ctl00_wucLogin1_txtUID')" onfocus="aspxEGotFocus('ctl00_wucLogin1_txtUID')" onkeypress="aspxEKeyPress('ctl00_wucLogin1_txtUID', event)" style="height:15px;"> 

Login link:

 <a id="ctl00_wucLogin1_BtnLogin" class="Search_button" href="javascript:__doPostBack('ctl00$wucLogin1$BtnLogin','')" style="...">Login </a> 

How can I click on this link and how to fill in, than enter the username using twill? is there any other alternative for twill?

Thanks,

+4
source share
1 answer

Try sending the User-Agent header with the request. In any case, twill does not handle JavaScript well, so you better try something else.

For alternatives there are:

+1
source

Source: https://habr.com/ru/post/1496732/


All Articles