Jump to content
Sign in to follow this  

Click on link (mainly javascripts)

Recommended Posts

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")



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:


<!DOCTYPE html>
    <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" />

<!--[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 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(){}




Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...