Contributions
Re: How to verify word wrapping in a panel which consists of blocks containing text?
baxatob I need to verify if the string which is given as an input is wrapping its text to fit the component's width. Here, I would be mainly checking the word wrapping feature. The text wraps when there are more number of characters, that is the reason I mentioned length as 50 earlier.2KViews0likes1CommentRe: How to verify word wrapping in a panel which consists of blocks containing text?
The text is just a string with more than 50 characters. I am passing this string to the textbox using the Keys method. After adding this text, I am checking in the panel where it is displayed, whether the text is word wrapped ot not. var str = "Any string which is more than 50 characters" var textArea = obj.FindChild(["ObjectType", "className"], ["Textarea", "noteText"], 5); textArea.Keys(str); //Click on Add button to add the text var textPanel = obj.FindChild("ObjectType", "className"], ["Panel", "card-text"], 5); var bool = textPanel.WordWrap; I am very new to TestComplete, so I don't know if my approach is right or not.I would really appreciate if you could provide me your inputs.2KViews0likes5CommentsHow to verify word wrapping in a panel which consists of blocks containing text?
Hello Everyone, I have an object which has the ObjectType as Panel. It consists a number of card-blockswith text and theObjectTypeis Panel for each of them. I need to verify if the card-blocks containing text are getting wordwrapped. For this, I first detected the card-blocks containing the text and made use of the WordWrap method. But it is throwing me an error. Could someone please let me know where am I going wrong and suggest how to resolve this issue?2.1KViews0likes7CommentsRe: How to resize an object of type Panel in the Web Page?
I considered the ScreenLeft and ScreenTop properties as my x and y co-ordinates respectively. Then used the drag method to resize the panel. I am getting an error saying "There was an attempt to perform an action at a point, which is beyond the screen". Is there any other way to determine the x & y co-ordinates for my object? I don't know where I am going wrong in choosing the co-ordinates, as the method is very staightforward.1.9KViews0likes1CommentRe: How to resize an object of type Panel in the Web Page?
Thanks for the replytristaanogre. In order to determine the co-ordinates for my "mouse down" action, should I consider the pixel values with respect to the page or is there any other particular properties which I can make use of?1.9KViews0likes3CommentsHow to resize an object of type Panel in the Web Page?
Hello Everyone, Iam working on a script where it requires me to change the size of a panel by dragging it in the web application. I have used the Drag method in order to resize my panel. I have written the following where width and heigth are the properties for the particular object retreived by Object Spy- draggableObj.Drag(width, height, 20, 0) It is not throwing any error, but also not changing the width of my object. So could someone please suggest me how to go about this? Thanks in advance.Solved2KViews0likes5Comments- 2.6KViews0likes0Comments
How do I switch between two browser windows?
Hello Everyone, I have a script where I need to switch back to the previously opened browser window and perform some actions using TestComplete. I tried using the SetFocus() and Focus() method to activate a particular window. But it is not working. I have been searching for information on the most proficient method to do this, yet I'm learning as I go, and I've invested excessively energy attempting to assemble this test. I trust this is a moderately basic kind of test that others have composed previously. Would someone be able to provideme the most ideal approach to this test? Any kind of help would be highly appreciated. Thanks in advance.Solved2.7KViews0likes5Comments