Sign in to follow this  
Followers 0
Logu

SDL TRIDION 2009 Automation

2 posts in this topic

#1 ·  Posted (edited)

Hi Recently i started using AutoID,

If any one works on SDL Tridion i needs your help,

Below is my code its incomplete.

#include <IE.au3>

#include <String.au3>

#include <WindowsConstants.au3>

#include <Constants.au3>

#Include <Excel.au3>

; Open the static page

$oIE = _IECreate("http://epocms.www8.hp.com/")

;$oIE = _IEAttach("http://epocms.www8.hp.com/","url")

_IELoadWait($oIE)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

_IELoadWait($oFrame)

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(1000)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

_IELoadWait($oFrame)

WEnd

$oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree")

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(1000)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

$oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree")

WEnd

_IELoadWait($oFrame)

$oDivTree = _IEGetObjById ($oFrame, "DivTreeView")

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(1000)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

$oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree")

$oDivTree = _IEGetObjById ($oFrame, "DivTreeView")

WEnd

_IELoadWait($oDivTree)

$oTreeView = _IEGetObjById ($oDivTree, "TreeView")

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(1000)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

$oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree")

$oDivTree = _IEGetObjById ($oFrame, "DivTreeView")

$oTreeView = _IEGetObjById ($oDivTree, "TreeView")

WEnd

_IELoadWait($oTreeView)

$oFrame = _IEFrameGetCollection ($oTreeView,1)

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(1000)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

$oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree")

$oDivTree = _IEGetObjById ($oFrame, "DivTreeView")

$oTreeView = _IEGetObjById ($oDivTree, "TreeView")

$oFrame = _IEFrameGetCollection ($oTreeView,1)

WEnd

_IELoadWait($oFrame)

$oDiv = _IEGetObjById ($oFrame, "sub_tcm:0-0-0")

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(2000)

$oFrame = _IEFrameGetObjByName ($oIE, "fNavTop")

$oFrame = _IEFrameGetObjByName ($oFrame, "fNavTree")

$oDivTree = _IEGetObjById ($oFrame, "DivTreeView")

$oTreeView = _IEGetObjById ($oDivTree, "TreeView")

$oFrame = _IEFrameGetCollection ($oTreeView,1)

$sHTML = _IEDocReadHTML($oFrame)

$oDiv = _IEGetObjById ($oFrame, "sub_tcm:0-0-0")

WEnd

_IELoadWait($oDiv)

$oTable = _IEGetObjById ($oDiv, "node_tcm:0-244-1")

WHILE ( @ERROR == $_IEStatus_NoMatch )

Sleep(2000)

$oDiv = _IEGetObjById ($oFrame, "sub_tcm:0-0-0")

$oTable = _IEGetObjById ($oDiv, "node_tcm:0-244-1")

WEnd

By the above code i reaches the particular place, After this i need help to localize the componunt and want edit fields like the name and call to action URL this componunts has unique name according to that it has to select open and want to edit fields

Edited by Logu

Share this post


Link to post
Share on other sites



It's AutoIt, not AutoID ! Posted Image

Please use AutoIt Tags for post your code...


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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  
Followers 0