Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在没有ID的网页上单击按钮_Java_C#_Html_Angularjs - Fatal编程技术网

Java 如何在没有ID的网页上单击按钮

Java 如何在没有ID的网页上单击按钮,java,c#,html,angularjs,Java,C#,Html,Angularjs,我不知道如何点击网站上的按钮。 按钮代码是 <button ng-click="form.submit(false, frm, buyQuery, ['call'])" ng-mouseleave="hideDir()" ng-mouseover="showDir('call')" ng-disabled="disabledControls.buyBtn"> <i ng-class="{'mr0':chartHeight <= s

我不知道如何点击网站上的按钮。 按钮代码是

<button ng-click="form.submit(false, frm, buyQuery, ['call'])" 
        ng-mouseleave="hideDir()" ng-mouseover="showDir('call')" 
        ng-disabled="disabledControls.buyBtn">

  <i ng-class="{'mr0':chartHeight <= smallH.smallBuyBtns}"></i>

  <span ng-show="chartHeight > smallH.smallBuyBtns">Call</span>

</button>

很抱歉,我的问题可能写得不好,但我对编码是新手,如果回答我的问题需要任何其他信息,请告诉我。

单击事件的条件是什么?这是其他行动吗

无论如何,在您检测到表单提交按钮应该被单击的代码部分,只需使用与ng click中相同的代码:
$scope.form.submit(false、frm、buyQuery、['call'])


如果
form
是您表单的名称,那么这就行了。

很抱歉,我不完全理解您所说的单击事件的条件是什么。Set form=webbrowser.Document.Body.GetElementsByTagName(“表单”)(0)Set button=form.GetElementsByTagName(“按钮”)(0)button.click不起作用,这是我的准确代码副本并粘贴了,我得到的错误消息与以下行有关:form.GetElementsByTagName(“button”)(0)
Set form = webbrowser.Document.Body.GetElementsByTagName("form")(0)

Set button = form.GetElementsByTagName("button")(0)


button.click