jmstubiera Posted November 7, 2016 Share Posted November 7, 2016 (edited) Hello guys. I am working on a program in which it Automates the functionality of a website. I came across an issue wherein I want to see if a JavaScript function is present on a page. javascript:showBranchLPA(0) If that is present on the page it'll call out another function. Any ideas? Any help would be appreciated. Thanks in advance Edited November 10, 2016 by jmstubiera Link to comment Share on other sites More sharing options...
jmstubiera Posted November 10, 2016 Author Share Posted November 10, 2016 Any ideas? Link to comment Share on other sites More sharing options...
PACaleala Posted November 15, 2016 Share Posted November 15, 2016 Check here InunoTaishou in post #6 and #8 has the answer for you. Link to comment Share on other sites More sharing options...
jmstubiera Posted November 17, 2016 Author Share Posted November 17, 2016 Yes, but that is only limited by the whole content of the html page in which it does not include the javascript files or source running on the page. (i.e. external js scripts or css files) Link to comment Share on other sites More sharing options...
junkew Posted November 17, 2016 Share Posted November 17, 2016 which browser? If IE then you should be able to use IE.AU3 to work with the DOM http://www.w3schools.com/jsref/coll_doc_scripts.asp FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now