[英]Return ID of HTML Object
Currently I am using VBA and excel to automate some webpage functionality. 目前,我正在使用VBA和excel来自动化某些网页功能。 I am able to export all the values I want using the .innerText function, but I wanted to know if was possible to return the html ID name?
我可以使用.innerText函数导出所有想要的值,但是我想知道是否可以返回html ID名称? I need to keep track of the ID so that I can call the ID with a click function later on once data has been validated.
我需要跟踪ID,以便稍后在数据经过验证后可以通过click函数调用ID。 Is this possible?
这可能吗?
Use .id
. 使用
.id
。 Just like how you would use .innerText
就像您将如何使用
.innerText
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.