robotframework-whitelibrary icon indicating copy to clipboard operation
robotframework-whitelibrary copied to clipboard

Can‘'t find the correct element in "Input Text To Textbox" keywordk

Open lalamini opened this issue 5 years ago • 2 comments

The example on the keyword document like this:

@{my_buttons}= | Get Items | class_name:MyButtonClass
Click Button | ${my_buttons[2]} 

I just use the same way like this:

@{my_edittext}=   |  Get Items   |  class_name:TEdit
Input Text To Textbox  |  ${my_edittext[1]}  |  123

the log of execute

@{my_edittext}=   |  Get Items   |  class_name:TEdit",

is like this:

 INFO : @{my_edittext} = [ Panel. AutomationId:6554104, Name:, ControlType:pane, FrameworkId:Win32 | Panel. AutomationId:2557884, Name:, ControlType:pane, FrameworkId:Win32 ]

So it means we got tow object of edit object.

But after execute

Input Text To Textbox  |  ${my_edittext[1]}  |  123

It give me log:

FAIL : TypeError: Item object was not of the expected type

It should means that the object of index[1] is not the expected type.

python package information: robotframework-whitelibrary 1.4.0 pythonnet 2.4.0.dev0 (may be the root cause?)

lalamini avatar Apr 16 '19 07:04 lalamini