小编Fab*_*rdo的帖子

Clockify中的登录表单

我正在尝试创建一个PowerShell脚本来打开Internet Explorer,导航到https://clockify.me/login,填写电子邮件和密码输入并提交表单或单击登录按钮.

问题是,在使用以下方法填充输入时:

  • document.getElementById("email").value="123"
  • document.getElementById("password").value="123"

我有以下结果:

  • 当我提交表格时document.forms[0].submit(),网页重新加载网址https://clockify.me/login?email=&password=并且没有任何反应
  • 当我单击按钮,使用javascript或手动时,它认为输入为空

那么,有没有办法解决这个问题?使用纯粹的javascript或PowerShell(我希望保持IE窗口不可见)

谢谢!

javascript powershell angular2-changedetection clockify

6
推荐指数
1
解决办法
1017
查看次数