Contributions
Re: How can I open new browser session by test complete
Shankar, As I want to work with multiple URLs at same time,Sys.Process("browser").Exists will be true if I need to open new browser instance. My requirement is, need to open a new url as a separate instance to validate something in between the execution of my primary url without closing it. What solution we have in Test complete2.5KViews0likes2CommentsHow can I open new browser session by test complete
I need to work on multiple urls in my project with different browser instances. When I useBrowsers.Item(btIExplorer).Run(url1),It is entering url with existing browser. When I try WshShell.Run("iexplore.exe " +url2), IE is getting hang every now and then. It is not working always When I try Sys.Browser('iexplore').BrowserWindow(0).Keys("^t"), it is opening new tab, but still url is entering in the previous tab. Question 1: Is there any direct method in Testcomplete to launch new browser instance (in IE & Chrome) Question 2: If no, how can I identify the last opened browser and enter my application URL to that browser.2.5KViews1like5CommentsRe: Opening second browser window
Hi Colin, When I try to open new IE browser with blow code, sometime IE is getting hang in JS WshShell.Run("iexplore.exe " + myAppUrl); IS there any direct method in TC to launch my app in new instance of browser vy JS as I need to execute end to end script with multiple web application.794Views0likes0CommentsRe: FindChildByXPath is not working on the object created by EvaluateXPath method
Thanks for the replay. In that case how can I get properties of some child object created byFindChildByXPath with xpath. For example, if I have multple dom with a class name in the dom, I need to check the some properties inside object with xpath <ul> <li class = "some Class"> <span class = "some calss2"> text </span> </li> <li> ... </li> ... </ul> now I am creating object by using //li[@class='val'] In case if I need use childobject, of //span[@class='val'] in each object, how can I do the same with Testcomplete tool1.4KViews0likes1CommentFindChildByXPath is not working on the object created by EvaluateXPath method
I created array of object byEvaluateXPath. When I loop to that object and use FindChildByXPath, not supporting this method error is appearing. Here in the code. var obj1 = MyWebpageObject.EvaluateXPath("//ul[@id='UserList']/li"); var arrObj = obj1.toArray(); for (var i in arrObj){ var objDate = arrObj[i].FindChildByXPath("//span[@id,'txt-date']") if(objDate) { BuiltIn.ShowMessage(objDate.contentText) } When it is executingarrObj[i].FindChildByXPath, throwing an error as "Object doen't support this propertyt or method"1.4KViews0likes3CommentsRe: How to load all contents of a div in a web page for lazy loading
When i use the xpath of object with text, scrollIntoView is working. But when i check the object count with EvaluateXpath, taking more than 15 minutes to execute that line with cont of 280. So when use loop to load all items in a div, taking more than 45 minuts, which i can do manually with 1 minute. Is there any fast way to get object count with xpath1.1KViews0likes1CommentExecution with xpath is too slow in TC 12.5
Hi, My application is an angular js web app. I am automating this in IE. When i use findChildByXpath or EvaluateXpath is taking too much time. When i am trying to find list of item with EvaluateXpath with //div//<SOME props="">//li its is taking more than 15 minutes to get count of 300. Is there anyway i can increase the execution speed</SOME>1.1KViews0likes2CommentsHow to load all contents of a div in a web page for lazy loading
I am automating my web application with xpath. I have some line items <li> under a <div>. This div has scroll bar.i have muliple items in the div. It will load completely only when i scrol to end (Lazy loading). How can I scroll down in the div or how can load all items in div by Jscript. I tried .setfocus on last loaded. It is showing as not supported I tiredSys.HighlightObject that also not supporting Also triedscrollIntoView(true). it is scrolling only the window scroll not div scroll. Can you please help me to resolve this1.1KViews0likes3Comments