Siebel Automation

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
AJS
Newbie
Posts: 1
Joined: Thu Sep 02, 2010 3:09 am

Siebel Automation

Post by AJS » Thu Sep 02, 2010 3:36 am

Hi
I am trying to do automation on Siebel Web Client using Webrecorder. I can successfully log in but when i try to click on the Search button which looks like a binocular image and resides within a Table Cell, webrecorder does not record that script.

DOM Model looks like this

Code: Select all

BODY class="toolbar" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0"
TABLE border="0" cellSpacing="0" cellPadding="0" width="100%"
TBODY
TR
TD noWrap SPAN id="s_5" TABLE style="HEIGHT: 27px" TBODY TR
TD id="s_5_out0" onmouseup="Top()._swescript.SWEHandleTBEvent(4,0,event)" class="TBflat4" onmouseover="Top()._swescript.SWEHandleTBEvent(4,0,event)" onmouseout="Top()._swescript.SWEHandleTBEvent(4,0,event)" onmousedown="Top()._swescript.SWEHandleTBEvent(4,0,event)" onclick="Top()._swescript.SWEHandleTBEvent(4,0,event)" noWrap 
IMG id="s_5_in0" alt="Search" align="absMiddle" src="https://XXXXXX/callcenter_enu/images/icon_search.gif" /
I have also tried editing the script manually using below code with no luck.

Tagname = IMG and INDEX = 11

Code: Select all

IE_ClickTag>%IE[0]%,_sweviewbar,IMG,11,r
I cannot find the javascript function as well which this button runs, so cannot use that feature.
I have also tried using src value and Table Index

Code: Select all

Let>FrameName={"sweviewbar"}
Let>FormName={""}
Let>TagValue={"http://XXXX/callcenter_enu/images/icon_search.gif"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,IMG,SRC,str:TagValue,r
Still cannot click this button using Webrecorder.
Anyone got any Ideas?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Sep 08, 2010 12:07 pm

WebRecorder can access HTML objects via IE's DOM (Document Object Model). Anything outside of that model (java, activeX components, non standard markup, some dynamicly generated Javascript) it is not able to record. For those parts you would have to fall back on traditional methods (user simulation - sending keystrokes etc / image recognition etc).

WebRecorder produces Macro Scheduler code so you can add to and modify that code or use the WR produced code within regular scripts. With Macro Scheduler you have a number of different automation techniques available.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Wed Sep 08, 2010 12:52 pm

Something similar to this might help?

Code: Select all

VBStart

Function ClickIt(IEInst)
  IEInst.Top()._swescript.SWEHandleTBEvent(4,0,event).click
End Function

VBEnd


VBEval>ClickIt(%IE[0]%),nul
Note use only 1 VBStart/VBEnd block in your macro. i.e. put the vbscript function inside your existing VBStart/VBEnd block if you have one.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Sep 08, 2010 1:05 pm

Adroege's code won't work for you as you're using WebRecorder and %IE[0]% won't mean anything to VBScript.

However, if it is true that you need to run that onmouseup event then you could try this:

Let>action=Javascript:Top()._swescript.SWEHandleTBEvent(4,0,event)
IE_Navigate>IE[0],action,r
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts