Forum Discussion

vthomeschoolmom's avatar
vthomeschoolmom
Super Contributor
5 years ago
Solved

Extend TestComplete for a different clicky event

Consider this line of code.   Aliases.browser.pageMain.wndWindowHeader.panMenuContent.mnuTicketInquiry.Click();   I have an object in name mapping that I click. Loverly.    There are many...
  • tristaanogre's avatar
    5 years ago

    Not quite as such, no.  You can't do 

    Aliases.browser.pageMain.wndWindowHeader.panMenuContent.mnuTicketInquiry.NavigatorClick()

     

    What you CAN do is

     

    NavigatorClick(Aliases.browser.pageMain.wndWindowHeader.panMenuContent.mnuTicketInquiry)

     

    Look up ScriptExtensions.  You can create a runtime object that would encapsulate that method that would be universally available to all projects without needing to do any kind of shared file libraries.