没有结果的运行Click事件 [英] Running Click event with no result

查看:114
本文介绍了没有结果的运行Click事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以向我解释为什么当我单击以下元素时,表格未发送.元素已识别,但是没有结果. 这是我感兴趣的代码的一部分,到目前为止,一切都运行良好.

Can someone explain to me why when I click on the following element, the form is not sent. The element is identified however there is no result. This is the part of the code i am interested in solving, everything up to this point is running fine.

Set IEDoc = Internet.document

Set collection = IEDoc.getElementsByTagName("input") ' there are actually 9 elements

For Each Element In collection
    If Element.Type = "image" Then ' there is only the element of interest in here
        Element.Click


        End If
Next

以下是网页中HTML代码的示例:

Here is a sample of the HTML code from the webpage:

推荐答案

此处是页面上更大比例的HTML代码,我们可以在其中看到包含用于提交信息的按钮的表单.

Here is a bigger scale of the HTML code from the page in which we can see the form containing the button to submit the information.html code bigger scale

网页的用户界面

这篇关于没有结果的运行Click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆