Forum Discussion

acm's avatar
acm
Contributor
8 years ago

Run Code Snippet with QuerySelector & Click method embedded

Hello,

 

How do I accomplish this for a Keyword Test?  The link that needs to be clicked is of class "i.arrow-top".  (See image attached). 

 

Because the Object Spy cannot successfully identify this link, I thought of using Run Code Snippet with QuerySelector("i.arrow-top") and Click().  Is it possible to combine both methods in a single line of code?  The goal is to click on the arrow-top link.  

 

Also attached is a screenshot of my TestComplete workspace showing the Run Code Snippet parameter:

Aliases.browser.pageIsmadsMyDashboard2.QuerySelector("i.arrow-top").Click();

 

p.s. One more question:  When attempting to use Object Spy, the entire browser window is highlighted instead.  Could it be because the arrow-top's css display attribute is set to "block"?

 

Thanks in advance for any feedback :)

Arlene