Contributions
- 1.3KViews0likes0Comments
Re: How to enter two integers using SetText method
Robert - excellent! That worked! Taking this one step further, how would I setup Test1 so that I could pass in a and b as parameters ? I would like to be able to write Test1(35,50) and have it enter 35,50 into the textbox field.1.4KViews0likes1CommentHow to enter two integers using SetText method
I am using Python scripting with TestComplete and I am hitting an issue. I have a textbox in which I would like to enter two numeric values separated by a comma (i.e., 35, 50). The closest method I can see that would work is SetText; however, I don't know how to enter two integers and have them show up as expected. Here is my code thus far; if I input (a) into the last line, it returns 35.If I input (b), then it returns 50. def Test1(): a = 35 b = 50 Aliases.CoordinatesTextBox.SetText(a,b) What do I need to do in order for 35,50 to be displayed?Solved1.4KViews0likes4Comments