birdmanjenkins Posted October 11, 2021 Report Share Posted October 11, 2021 Hello, I am trying to use javascript to read the ID elements on several different websites. I'm bascially looking for the ID for a particular search button then alerting the user when it is found. Is this something that I can do with the external script command with javascript? Quote Link to comment Share on other sites More sharing options...
Cory Posted October 11, 2021 Report Share Posted October 11, 2021 I don't know as I use .NET, but I am guessing you can. You will need to create some objects and populate them. In .NET I have a WebBrowser object which I can navigate to an address. When it downloads the text of the HTML, it renders it into the DOM object. All elements become objects within the DOM object. WebBrowser Document. Then in there one can iterate though the element object or search for elements by ID. I'm guessing an equivalent could be found in JavaScript and you could command that from MEP. I'm sorry I don't know specifically and I'm not answering your question. I just thought I'd share how it works with other languages and that most languages have equivalent objects. https://www.w3schools.com/js/js_htmldom.asp 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.