Manipulating Salesforce html elements with Autohotkey via COM

I wrote an Autohotkey script that uses COM to automate updating Salesforce opportunities. At some point, the functionality broke. Previously, I could use javascript alerts to determine which HTML elements I needed to manipulate, e.g,
**javascript: alert(document.forms[3].elements[8].value)** would return the value "Save".
I would then have AHK click that element to Save the opportunity. Now I get error messages in Autohotkey and all javascript alerts(Forms 0-3, Elements 1-20) return "Unable to download . Unspecified error". I have a very beginner level understanding of HTML, so I'm not sure what this means. Could Salesforce have protected the HTML elements from being manipulated?
Could you add the code you have and the URL to the page you're trying to manipulate? I doubt the HTML elements are protected, but certainly the document structure of the page could be changed to the point where you need to change your AHK code too.

以上就是Manipulating Salesforce html elements with Autohotkey via COM的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准