Python和Internet Explorer(特定网站)

2024-05-29 10:37:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用Python打开一个IE实例,导航到特定的站点,然后输入登录凭据。我目前正在努力使IEC工作,但对其他选项也持开放态度。在

我有麻烦的最后一部分(登录),因为“按钮”似乎没有被识别。它似乎是某种触发器,充当按钮(role=“button”)?我对此不太熟悉:

<a title="Click here to log in." class="focus-parent ajax-request need-focus-pageobject" role="button" href="../MyAccount/MyAccountUserLogin.asp?Referrer=&AjaxRequest=true">

以下是我尝试过的代码:

^{pr2}$

我会很感激在这种情况下如何打开登录菜单的提示。在


Tags: to实例here站点title选项button按钮

热门问题