Dynamically I am unable to get standard and action methods
I have web page it contains script.In that script we used getElementsByTagName("A") and link.Click methods.Those methods are not appearing dynamically not only those two, standard and actions methods are not appearing.eventhough it is showing standrad methods those all methods are Firefox methods only.when object browser is in static mode it is showing all the methods like standard,action and Firefox.Could you please suggest work around.
Thanks in advance.
Officially TC is not supporting Mozilla .
Also rather than hard coding ( static option ), dynamically flash methods (AS3 ) should be accessible from TC.
what you think ?
Robert Martin - TeamAQA
Senior QA Analyst
Gateway Ticketing Systems, Inc.
[TeamAQA] does not designate an employee of AutomatedQA Corp.
All comments made by TeamAQA do not necessarily reflect the
policies of AutomatedQA corp. TeamAQA members are users
who are more or less proficient in AutomatedQA's tools and
who share their experience with others. [TeamAQA]
designation used with the permission of AutomatedQA Corp.
More information about [TeamAQA] and its members is available at
ASQ Member 63032552
ASQ CSQE Cert#: 2766
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Thanks for quick response. I have a simple web application with a table and hyper links in each row of the table. I am trying to click particular link using VBscript. I am able to do this in IE with no issue. Below is the code I have used for it.
For each link in allLinks
Dim strLocation, outerHtmlTxt
strLocation = aqString.Find(link.outerHTML,"xyz", 1)
If strLocation <> -1 Then
I am not able to use the same script for FF, I had to change it as given below, to get list of hyper links. But link.Click is giving VBScript error (method not available). But in object browser I could see 'Click' method under Actions section. But when I see variable 'link' in Evaluate-Inspect option, I could see only Firefox methods only. I could not see Click method. Could you please suggest work around to come across this issue.
Also I have tried with NameMapping for this particular Link object ("xyz" link that I wanted to click) and I am able to make Click call on this object.
Thanks in advance.
The getElementsByTagName method returns a native enumerator with native objects whose methods and properties are different for IE and FF. That is why, native objects of FF don't have the Click method as opposed to IE.
You can use the Find method instead of the getElementsByTagName method (see the "Find Method" help topic):
Dim PropArray, ValuesArray, obj
PropArray = Array("tagName", "outerHTML")
ValuesArray = Array("A", "*xyz*")
Set obj = gamesPage.Panel("page").Panel("MyContent").Find(PropArray, ValuesArray, 500)
If obj.Exists Then
Log.Error "The object was not found."
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️