Contributions
Re: How to/improve performance of my function/JavaScript
Hi Alex, Good Question <Any real reason to use .NativeWebObject ?> - No, it is the first way that I learned and I am still using it.I understand that there are disadvantages that I see now, and will be more later, that is way I am looking for alternative. About <page.Find(..)> - Idon't understand how to use it. Can you give me a line(or reference to the example) of code how to find "Username" athttp://support.smartbear.com/samples/testcomplete10/weborders/2.3KViews0likes3CommentsRe: How to/improve performance of my function/JavaScript
Thanks, I tried to use object spy to find(or define an object) and the function that is suggested by TestComplet to this object and it is really faster. But in that case I have a huge line of code just to click. I understand that I can map that object and use my allias, but is there any way to avoid mapping? I am not really strong, so if you can give me one line of code with generic example (how can I find an object <objects like Panel or Table or Cell> and reference to tutorial - it will be perfect. Thanks.2.4KViews0likes1CommentHow to/improve performance of my function/JavaScript
Hi every one, I am using very often my function to fill text fields, dropdowns or calendar/date select fields. It is working properly but I am not really happy with performance. Any advise how to make it faster? function ClickInputTextField(tag, propertyName, propertyValue, userInput) { var page = Sys.Browser().Page("*"); this.tag = tag; this.propertyName = propertyName; this.propertyValue = propertyValue; this.userInput = userInput; var obj = page.NativeWebObject.Find(propertyName, propertyValue, tag); var counter = 0; while(!obj.Exists)//because some times my object is not yet displayed { aqUtils.Delay(1000); Log.Message("Delay for not found object with propertyValue " + propertyValue + " was applied"); counter++; var obj = page.NativeWebObject.Find(propertyName, propertyValue, tag); //obj.Click(); if(counter==7){break}; } obj.Click(); obj.SetText("");//because some times that field is prepopulated obj.Keys(userInput);// It can be dropdown, so I am typing the string(or begining of the string) to select aqUtils.Delay(300);//when I don't use that hardcoded <wait> it fails some times for dropdowns page.Keys("[Enter]"); to apply my select - if it is dropdown or date in calendar }Solved2.4KViews0likes8Comments- 4KViews0likes3Comments
Re: How to?/back browser button(JavaScript/Chrome)
Thanks Robert, I tried: ......... var page = Sys.Browser().Page("*"); page.Keys("[Left]");//Log:Keyboard input. Normal 13:06:06 page.Keys("[Left]");//Log:Keyboard input. Normal 13:06:06 page.Keys("[Left]");//Log:Keyboard input. Normal 13:06:06 But I am still on the same page(((((4KViews0likes4CommentsHow to?/back browser button(JavaScript/Chrome)
Hi every one, I can not find how to use back browser button.(JavaScript/Chrome) I am looking for something like: var page = Sys.Browser().Page("*"); page.back()//doesn't exist - just example OR Browsers.Item(btChrome).back()//doesn't exist - just example ThanksSolved4.1KViews0likes8CommentsTestExecute is not able to run my JavaScript project on Remote Server
Greetings to every one, I got a problem with running my test from TestExecute on Remote Server: TestExecute is not working with my JavaScript Project(error capture is attached), whereas TestComplete is able to execute the same project. Error: Unable to open the project".....................................................mds" It uses the JavaScript language that is not supported on Windows XP and Windows Server 2003 Whereas my server is 2008 R2 Standard Any suggestion?1KViews0likes2Comments