legend Posted November 13, 2015 Posted November 13, 2015 Hello, I got a ticket system, and I want to automate some of it. I want to click on the button "smart recorder". But it's type is "a" ? no div or input. using "a" does not seem to work, Here's a screenshot, and my script: _IELinkClickByClass("http://rdremedy01/ux/smart-it", "navigation-bar__item-label ng-binding", "a") Func _IELinkClickByClass($link, $classname, $tag) $oIE = _IECreate($link) Local $oInputs = _IETagNameGetCollection($oIE, $tag) For $oInput In $oInputs If $oInput.classname == $classname Then _IEAction($oInput, "click") Next EndFunc Here's the inspected element: <a class="navigation-bar__item-label ng-binding" href="javascript:">Smart Recorder</a> I'm not sure how autoit should be able to find it, since it's mainly javascript, and when viewing the source, it's very small: expandcollapse popup<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Smart IT Universal Client 1.0</title> <link href="styles/img/bmcfavicon.ico" rel="shortcut icon" /> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="styles/vendor/css/vendor.min.css"> <link rel="stylesheet" href="styles/css/main.min.css" /> <link rel="stylesheet" href="styles/css/components.min.css" /> <!-- Customer customization --> <link rel="stylesheet" href="/ux/tenant-custom-res/style-smart-it.css" /> </head> <!--[if IE]><body class="ie" ng-controller="MainController"><![endif]--> <!--[if (!IE)|(gt IE 10)]><!--> <body ng-controller="MainController"> <!--<![endif]--> <system-alert-notificator ng-if="appState != APP_STATES.INDETERMINATE"></system-alert-notificator> <div ng-if="appState === APP_STATES.INDETERMINATE" class="app_indeterminate"> <div loading-spinner if="true" centered="true" overlay="true"></div> </div> <div ng-if="appState === APP_STATES.SHOW_WINDOW"> <div ui-view></div> </div> <div ng-if="appState === APP_STATES.SHOW_LOGIN" ng-include="'views/user/login.html'"></div> <div ng-if="appState === APP_STATES.SHOW_MAIN" ng-include="'views/main.html'" class="app__container"></div> <script src="scripts/vendor/vendor.min.js"></script> <script src="scripts/vendor/plugins.min.js"></script> <script src="scripts/app/app.min.js"></script> <script src="scripts/app/templates.min.js"></script> <script src="scripts/components/components.min.js"></script> <!-- fix for IE --> <script type="text/javascript"> if(!window.console) { var console = { log : function(){}, warn : function(){}, error : function(){}, time : function(){}, timeEnd : function(){} } } </script> </body> </html>
Developers Jos Posted November 15, 2015 Developers Posted November 15, 2015 Why start a new topic when you asked the same question already in another topic?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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