Javascript 填写第三方网络表单

Javascript 填写第三方网络表单,javascript,php,forms,testing,automation,Javascript,Php,Forms,Testing,Automation,如何在不公开其表单源代码的第三方网站上自动填写/提交web表单(请参见下面的Spotify登录页面src代码)?我如何在这里选择表单字段来输入值?我是否必须通过JS使用“getElement”或“通过UI进行选项卡切换” 我的研究使我相信Selenium2和PHPUnit是测试并最终自动填写web表单的好方法。这都是假设我在数组中已经有了填充表单字段/满足验证所需的值 <!DOCTYPE html> <html ng-app="accounts" ng-csp> &l

如何在不公开其表单源代码的第三方网站上自动填写/提交web表单(请参见下面的Spotify登录页面src代码)?我如何在这里选择表单字段来输入值?我是否必须通过JS使用“getElement”或“通过UI进行选项卡切换”

我的研究使我相信Selenium2和PHPUnit是测试并最终自动填写web表单的好方法。这都是假设我在数组中已经有了填充表单字段/满足验证所需的值

<!DOCTYPE html>
<html ng-app="accounts" ng-csp>
  <head>
    <meta charset="utf-8">
    <title ng-bind="(title && (title | localize) + ' - ') + 'Spotify'">Spotify</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <base href="/">
    <link href="https://d2d1dxiu3v1f2i.cloudfront.net/45962e4/css/index.css" media="screen" rel="stylesheet">

    <script async defer src="https://d2d1dxiu3v1f2i.cloudfront.net/45962e4/js/index.js" sp-bootstrap></script>
    <meta ng-non-bindable sp-bootstrap-data='{"country":"US","locales":["en_US","en"],"BON":["0","0",-1691062138]}'>
  </head>
  <body ng-view></body>
</html>

Spotify