cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with text = <variablename> in test.

SOLVED
Contributor

Issues with text = <variablename> in test.

I'm having an issue where if I use Tesobj.Text = <some variable from csv> it doesn't puts an incorrect value in the box. By incorrect value, I mean a value that's in a completely different csv. 

 

The only way I can get my tests to work is if I use Keys.

 

Anyone else run into this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Issues with text = <variablename> in test.

That's not exactly the recommended way of populating a text box.  Rather than "Keys" try "SetText".  However, it's odd that it's grabbing a value from a completely different CSV... could you give your code in context so we can see what's going on?  It would be easier to debug if we saw more of what's happening.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available

View solution in original post

2 REPLIES 2
Community Hero

Re: Issues with text = <variablename> in test.

That's not exactly the recommended way of populating a text box.  Rather than "Keys" try "SetText".  However, it's odd that it's grabbing a value from a completely different CSV... could you give your code in context so we can see what's going on?  It would be easier to debug if we saw more of what's happening.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available

View solution in original post

Highlighted
Contributor

Re: Issues with text = <variablename> in test.

For some reason, I don't have SetText as an option. Only .Text. We're using Delphi, which some of the components are custom if that matters.

 

Keys is working so I'll stick with that.

 

I'd post my code, but there's a few different things going on elsewhere. I'm going to have to troubleshoot that later.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors