1 2 Previous Next 17 Replies Latest reply on Feb 20, 2015 11:25 AM by Hal DeVore

    UI element not found

    Keerthi Prashanth S

      Hello Guys,

      Just want to let you know that i have recorded an application via workbench 4.2 and while recording and replaying i found that there is no issues. But when uploaded to TMART central , found that i am getting an issue as UI element not found during the monitoring stage. Can someone please help me on the same. Code is as below:-

      Just to update the TMART central version is 4.2...

      // ----------------------------------------------------------------------
      // Recorded 2/17/2015 by BMC TM ART Recorder v4.2.0.5512 Service Pack 2
      // ----------------------------------------------------------------------
      // Rule set "ASP.NET ViewState"
      //  * Rule "Parse and Replace __VIEWSTATE"
      //  * Rule "Parse and Replace __EVENTVALIDATION"
      // ----------------------------------------------------------------------

      @codepage(1252)

      benchmark BMCTMARTRecorder

      use "Kernel.bdh"
      use "BrowserAPI.bdh"

      dcluser
        user
          VUser
        transactions
          TInit           : begin;
          TMain           : 1;

      var

      dclrand

      dcltrans
        transaction TInit
        begin
        end TInit;

        transaction TMain
        var
          wnd1 : number;
          wnd2 : number;
        begin
          BrowserStart(BROWSER_MODE_DEFAULT, 948, 513);
          BrowserSetAuthentication("frtga052", Decrypt3DES("B0JnRwaKgxV5Qv8E7NEPSlw="));
          BrowserNavigate("http://abc.wifi.com/", "Navigate_http://abc.wifi.com/ (#1)");
          wnd1 := BrowserGetActiveWindow("wnd1");
          ThinkTime(36.1);
          BrowserClick("//A[@id='A100325JLE02--1S1_Gr*']", BUTTON_Left);
          ThinkTime(4.5);
          BrowserClick("//SPAN[@textContents='Bestand']", BUTTON_Left, "Click, SPAN, textContents=Bestand (#1)");
          ThinkTime(20.3);
          BrowserSetAuthentication("frtga052", Decrypt3DES("B0JnRwaKgxV5Qv8E7NEPSlw="));
          BrowserClick("//SPAN[@id='A070920DBR4--1S1__PR*']", BUTTON_Left, "Click, SPAN, textContents=Bericht drucken (#1)");
          ThinkTime(20.5);
          wnd2 := BrowserGetActiveWindow("wnd2");
          ThinkTime(45.9);
          BrowserCloseWindow(wnd2);
          BrowserActivateWindow(wnd1);
          ThinkTime(30.9);
          BrowserClick("//SPAN[@id='A070920DBR14--1S1_Te*']", BUTTON_Left, "Click, SPAN, textContents=zurück zum Hauptmenü (#1)");
          ThinkTime(14.0);
          BrowserClick("//A[@id='A061121INI17--1S1_La*']", BUTTON_Left,
            "Click, A, href=javascript:__doPostBack('A061121INI17--1S1_LabelButton','') (#1)");
          ThinkTime(20.8);
          BrowserClick("//SPAN[@textContents='Filter anwenden']", BUTTON_Left, "Click, SPAN, textContents=Filter anwenden (#1)");
          ThinkTime(25.0);
          BrowserClick("//DIV[@id='ABatchViewFilter1104*'][4]", BUTTON_Left);
          ThinkTime(10.5);
          BrowserClick("//TR[@item_id='53325581']/TD[@colSpan='1'][9]", BUTTON_Left);
          ThinkTime(10.4);
          BrowserClick("//DIV[@id='ABatchViewFilter1104*'][4]", BUTTON_Left);
          ThinkTime(5.1);
          BrowserClick("//SPAN[@textContents='Abmelden']", BUTTON_Left, "Click, SPAN, textContents=Abmelden (#1)");
          ThinkTime(8.2);
          BrowserClick("//A[@id='yes_button']", BUTTON_Left, "Click, A, textContents=Ja (#1)");
        end TMain;

        1 2 Previous Next