Contributions
I need to click on an object that can exist multiple times on a web page.
Hello , I am working with keyword testing. I have a test that will open a page and process a change (This is working). I am having trouble clicking a icon if it exists. The tricky thing is that the object I need to click will appear in different amounts. For example, on one page the same object will appear 2 times and I need to click it then when I open another page the object could appear 3 times and I need to click it three times. I need to figure out how to make it dynamic so that TC knows how many times to click the object before proceeding to the next page to do its work. Any help is greatly appreciated.973Views0likes1CommentRe: Under VB.NET code, how would i locate the value of an ID tag field on a HTML page?
Here is the solution you are after bozo: Function GetBalanceInfo() Dim browser, page, Obj Set browser = Sys.Browser("*") Set page = browser.Page("*") GetBalanceInfo = "*" ' Note that we used the * wildcards to specify the search pattern Set obj = Aliases.browser.pagePersonableEmployeeWebPortal.formForm1.panelMpage.textnodePLVV11w2T1Currentbalance GetBalanceInfo = obj.contentText ' Checks the result If obj.Exists Then Call Log.Message("Object containing text '" & GetBalanceInfo & "' is found", obj.FullName) Else Call Log.Warning("Object containing text '" & GetBalanceInfo & "' was not found.") End If End Function1.2KViews1like1Comment