WhiteHatBox
Share Page
Following(0)
Partner(s)
Miguel

Custom index don't save results to variable (control type)

ReplyThanks 2016/11/30 05:42:03 0 0

Operating System:Windows 10

Operating System Bit:64bit

Software Version:4.2.3

When I do a Find Action of a control with index variable and test it, it's ok.
But the saved variable (control type) returns false.


Is it a bug or I'm doing it wrong.



If I check Enable new search algorithm, it returns true, but I lose the index (always returns first index)


Thanks!

Aprilcaicai
2016/11/30 22:20:57

Enable new search algorithm

This one means it will only get the first index. So if you check it, it will only get the first index.



Miguel
2016/12/01 02:32:57
2 # Aprilcaicai 11/30/2016 10:20:57 PM

Enable new search algorithm

This one means it will only get the first index. So if you check it, it will only get the first index.



I know :).... but I need to select a random control, but If action only returns true for the first element. If I use a var for item index (first image of my original post), it search ok the control, but the if action returns always false
Aprilcaicai
2016/12/01 02:58:02
If you have customized the index option, please do not check this option "Enable new search algorithm"
Miguel
2016/12/01 04:08:26
4 # Aprilcaicai 12/1/2016 2:58:02 AM
If you have customized the index option, please do not check this option "Enable new search algorithm"

I don't check these option. But custom index return true in If function.

Please see first and second pictures of my first post .

Aprilcaicai
2016/12/01 04:50:44

We tested this function, it works normal. And if it returns to false on the If action, then it is correct. Besides, if it has searched out 10 results, the custom index value you input must be smaller than 10.

test file


Miguel
2016/12/01 05:28:52

Thank you for fast reply.


I just added a Control Operate (click) in your test file (If true), but it returns false, so click operation is missed

test file with Control Operate (click) on If true condition



Aprilcaicai
2016/12/01 20:53:39
I think you have made a mistake for this action. Once this control has been found, it will return false, otherwise it will return true.

Miguel
2016/12/02 02:22:08

Yes, I was totally wrong . I assumed that when I found the control, the function would have to return 'true'.

Thanks for your patience!

Please, close this thread .

<< < 1> >>
VerifyCode
Advanced Option