Python 从HTML属性输入Selenium webdriver用户名和密码

Python 从HTML属性输入Selenium webdriver用户名和密码,python,selenium-webdriver,web-crawler,Python,Selenium Webdriver,Web Crawler,我有一个python脚本,它使用SeleniumWebDriver登录和浏览网站。登录已成功,但该公司已更新其网站,我无法找到任何用于输入用户名和密码的“ID”/“Name”/属性 (在新网站版本之前)有效的代码是: 检查新部署的网站时,下面是用户名检查窗口中的html: 使用其他标记/函数我可以使用什么输入用户名? 以下是查看更新网站时我的检查窗口中的用户名HTML代码: <div>Version 1.4.4087</div></div><div c

我有一个python脚本,它使用SeleniumWebDriver登录和浏览网站。登录已成功,但该公司已更新其网站,我无法找到任何用于输入用户名和密码的“ID”/“Name”/属性

(在新网站版本之前)有效的代码是:

检查新部署的网站时,下面是用户名检查窗口中的html:

使用其他标记/函数我可以使用什么输入用户名? 以下是查看更新网站时我的检查窗口中的用户名HTML代码:

<div>Version 1.4.4087</div></div><div class="login-form"><sip-input class="login-input login-style has-errors" sip-input-group="login" sip-model="$ctrl.username" sip-minlength="3" sip-maxlength="12" sip-placeholder-translation="USERNAME" sip-required="" sip-autofocus=""><input sip-scope-field="sipInputCtrl.inputElement" ng-attr-tabindex="{{sipInputCtrl._sipTabindex}}" class="sip-input-element ng-valid ng-valid-maxlength ng-touched ng-dirty ng-valid-parse ng-not-empty" ng-keydown="sipInputCtrl.onKeyDown($event)" ng-keyup="sipInputCtrl.onKeyUp($event)" type="text" step="1" maxlength="12" ng-model="sipInputCtrl.sipModel" autofocus="autofocus" tabindex="0"><!----><!----><!----><div class="sip-input-placeholder-big" translate="USERNAME" ng-if="::sipInputCtrl.isTranslation">User name</div><!----><!----><div class="sip-input-placeholder-small" translate="USERNAME" ng-if="::sipInputCtrl.isTranslation">User name</div><!----><ng-transclude><sip-input-error sip-error-minlength="" class="error-hidden"><ng-transclude><span translate="ENTERUSERNAME">Please enter your user name</span></ng-transclude></sip-input-error></ng-transclude><div class="sip-input-focus"></div>
Version 1.4.4087用户名用户名请输入您的用户名

将html作为文本而不是图像发布。你想找到什么元素?@guy我已经用HTML更新了这个问题。基本上,我正在尝试替换python脚本中的用户名和密码标记,因为这些标记已经从网站上删除了,我想用其他东西替换它们,这些东西将用于在我的脚本中输入用户名和密码。html代码图像显示了要使用的可用属性(对于用户名),但我不确定如何使用它们。
<div>Version 1.4.4087</div></div><div class="login-form"><sip-input class="login-input login-style has-errors" sip-input-group="login" sip-model="$ctrl.username" sip-minlength="3" sip-maxlength="12" sip-placeholder-translation="USERNAME" sip-required="" sip-autofocus=""><input sip-scope-field="sipInputCtrl.inputElement" ng-attr-tabindex="{{sipInputCtrl._sipTabindex}}" class="sip-input-element ng-valid ng-valid-maxlength ng-touched ng-dirty ng-valid-parse ng-not-empty" ng-keydown="sipInputCtrl.onKeyDown($event)" ng-keyup="sipInputCtrl.onKeyUp($event)" type="text" step="1" maxlength="12" ng-model="sipInputCtrl.sipModel" autofocus="autofocus" tabindex="0"><!----><!----><!----><div class="sip-input-placeholder-big" translate="USERNAME" ng-if="::sipInputCtrl.isTranslation">User name</div><!----><!----><div class="sip-input-placeholder-small" translate="USERNAME" ng-if="::sipInputCtrl.isTranslation">User name</div><!----><ng-transclude><sip-input-error sip-error-minlength="" class="error-hidden"><ng-transclude><span translate="ENTERUSERNAME">Please enter your user name</span></ng-transclude></sip-input-error></ng-transclude><div class="sip-input-focus"></div>