Contributions
Dynamically I am unable to get the Standard and Action methods
Hi, 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. Set allLinks=gamesPage.Panel("page").Panel("MyContent").getElementsByTagName("A") For each link in allLinks Dim strLocation, outerHtmlTxt strLocation = aqString.Find(link.outerHTML,"xyz", 1) If strLocation <> -1 Then link.Click Exit For End If Next 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' inEvaluate-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. Pushpa.17KViews0likes0CommentsRe: Dynamically I am unable to get standard and action methods
Hi, 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. Set allLinks=gamesPage.Panel("page").Panel("MyContent").getElementsByTagName("A") For each link in allLinks Dim strLocation, outerHtmlTxt strLocation = aqString.Find(link.outerHTML,"xyz", 1) If strLocation <> -1 Then link.Click Exit For End If Next 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' inEvaluate-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. Pushpa.3.1KViews0likes0CommentsDynamically I am unable to get standard and action methods
Hi, 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. Pushpa15KViews0likes5CommentsFlash Text box name is not consistant
I am trying to automate flash game using Test Complete. I have a text box in flash UI. In Object Browser some times it is being detected as button and some times as Text element. But when it is detected as text element, its name is like Text(4). But this name is also not consistant, some times it comes as Text(4) and some times Text(6) etc. In this case it becomes difficult to refer this text box in my script. Could you please suggest a consistant way to do this. Thanks in advance. Pushpa17KViews0likes4Comments