how to focus out test box

2,239 views
Skip to first unread message

ankur

unread,
Oct 10, 2012, 9:01:36 AM10/10/12
to robotframe...@googlegroups.com
In my application,there is one text box with cursor blinking.
I want to focus out from that text box after entering number in it....

Ed Manlove

unread,
Oct 10, 2012, 9:11:28 AM10/10/12
to anku...@gmail.com, robotframe...@googlegroups.com
On 10/10/2012 09:01 AM, ankur wrote:
> In my application,there is one text box with cursor blinking.
> I want to focus out from that text box after entering number in it....

If you are using the Selenium2Library there is a focus keyword where you
can set the foucs on any element. See
http://rtomac.github.com/robotframework-selenium2library/doc/Selenium2Library.html#Focus

Ed

ankur

unread,
Oct 10, 2012, 9:22:17 AM10/10/12
to robotframe...@googlegroups.com, anku...@gmail.com
i want to focus out from text box,,,,,its already focused & i want to remove focus from that text box

Ed Manlove

unread,
Oct 10, 2012, 9:48:41 AM10/10/12
to anku...@gmail.com, robotframework-users
Yes, so set focus on another object? Or possibly

  ${current_url} =  Get Location
  Go to  ${current_url}/#

Bryan Oakley

unread,
Oct 10, 2012, 10:24:59 AM10/10/12
to anku...@gmail.com, robotframe...@googlegroups.com
Something always has focus. To get a focus out on one element, set the
focus to some other element.
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/robotframework-users/-/q0dunHzAu0kJ.
>
> To post to this group, send email to robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to
> robotframework-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/robotframework-users?hl=en.

Tatu aalto

unread,
Oct 10, 2012, 10:40:30 AM10/10/12
to oak...@bardo.clearlight.com, robotframe...@googlegroups.com, anku...@gmail.com

Ugh

Assuming that you are using selenium2library, you could simulate pressing the Tab-key:  Press Key    \\0009

Which moves the focus out of the field and gives the focus to something else.

NOTE: Not sure about how many \-characters are needed. It also might be three or four. Could someone remember?

-Tatu

ankur

unread,
Oct 10, 2012, 10:59:05 AM10/10/12
to robotframe...@googlegroups.com, oak...@bardo.clearlight.com, anku...@gmail.com
Great,,," Press Key 0009 " works fine.......
thanks for it...

> For more options, visit this group at
> http://groups.google.com/group/robotframework-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-users+unsub...@googlegroups.com.

Sujata Dwivedi

unread,
Apr 17, 2013, 3:34:43 PM4/17/13
to robotframe...@googlegroups.com, oak...@bardo.clearlight.com, anku...@gmail.com
Hi.

Press key 0009 or \0009 not working at my end.
So i tried Press key \t for tab ,now its working.
But i want to use shift+tab key, is there any key value for this?
Reply all
Reply to author
Forward
0 new messages