SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

Specify number of times to perform sendkeys action

Open quentinharris opened this issue 6 years ago • 2 comments

In VBA I can specify the number of times to perform a SendKeys operation with syntax such as Application.SendKeys "{TAB 2}".

I can perform the SendKeys in a loop but is there something similar to the above please? When I have performed a long loop I get "unable to connect to the remote server" error during the loop.

Thanks

quentinharris avatar Oct 05 '18 06:10 quentinharris

You could try something like: Application.SendKeys string(2, vbKeyTab)

On Fri, 5 Oct 2018 at 08:59, quentinharris [email protected] wrote:

In VBA I can specify the number of times to perform a SendKeys operation with syntax such as Application.SendKeys "{TAB 2}".

I guess with selenium basic I can perform the SendKeys in a loop but is there something similar to the above please?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/florentbr/SeleniumBasic/issues/177, or mute the thread https://github.com/notifications/unsubscribe-auth/AJlnWiWzV3g20jSpcNR6wc0p1KGMm5Jsks5uhwNegaJpZM4XJqew .

Jottie avatar Oct 05 '18 07:10 Jottie

You could try something like: Application.SendKeys string(2, vbKeyTab) On Fri, 5 Oct 2018 at 08:59, quentinharris @.***> wrote: In VBA I can specify the number of times to perform a SendKeys operation with syntax such as Application.SendKeys "{TAB 2}". I guess with selenium basic I can perform the SendKeys in a loop but is there something similar to the above please? Thanks — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#177>, or mute the thread https://github.com/notifications/unsubscribe-auth/AJlnWiWzV3g20jSpcNR6wc0p1KGMm5Jsks5uhwNegaJpZM4XJqew .

That sounds like a great idea. I will give it a go later.

quentinharris avatar Oct 06 '18 07:10 quentinharris