How to find the length of the edit box through WinRunner?

Showing Answers 1 - 5 of 5 Answers

rashwin

  • Oct 20th, 2005
 

go to gui check point & click on edit box that properties will be stores in the chklist select the length there

  Was this answer useful?  Yes

kishore

  • Oct 24th, 2005
 

there is no length property in check list

  Was this answer useful?  Yes

parikshit

  • Oct 25th, 2005
 

you can set GUI check point and there is check point for width for the edit box.,

  Was this answer useful?  Yes

Vedantham

  • Oct 28th, 2005
 

The question is quite ambiguous. Yet, the answer is in 2 fold.

1. If you are seeking for length of the text, then there is length function avialable in winrunner.

2. If you are looking for the edit box's (as a control) length, which is nothing but width, then here is the code:

obj_get_info(edit_box, "width", width);

Explanation:

edit_box represents the class of the edit box.

"width" signifies the width property of the edit box.

width is an auto variable declared, which will store the value of the "width" property when the above line is executed.

  Was this answer useful?  Yes

Vedantham

  • Oct 28th, 2005
 

The question is quite ambiguous. Yet, the answer is in 2 fold.

1. If you are seeking for length of the text, then there is length function avialable in winrunner.

2. If you are looking for the edit box's (as a control) length, which is nothing but width, then here is the code:

obj_get_info(edit_box, "width", width);

Explanation:

edit_box represents the class of the edit box.

"width" signifies the width property of the edit box.

width is an auto variable declared, which will store the value of the "width" property when the above line is executed.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions