What is exactly the meaning of "Focus"?

Mobile Testing, Android App Testing.
Posts: 1
Joined: Thu Aug 21, 2014 7:20 am

What is exactly the meaning of "Focus"?

Post by Incross_qa56 » Thu Aug 21, 2014 7:51 am


I am a tester of new applications on Android, not developer.
I am only using "Validate" function of Ranorex Recording for testing apps wheter new functions of app are working good well. Also, I never use "Code".
I wonder what meaning is "HasFocus" which is one section of "AtrritbuteEqual".
I already found Forum, Blog, and User Guide. But, there is no information I want.
Some people say that "focus" and "selecet" are different, but it shows only on Web broswer test.

What is exactly "Focus"?

Thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: What is exactly the meaning of "Focus"?

Post by Support Team » Fri Aug 22, 2014 1:04 pm

Hi Incross_qa56,

Generally, the “HasFocus” attribute indicates whether an element has focus.

HasFocus = true
HasFocus.png (266 Bytes) Viewed 1645 times
HasFocus = false
HasFocus_false.png (246 Bytes) Viewed 1645 times

Let me clarify the “Selected” attribute by an example:

The background color of a “Selected” list item is usually set to blue.
SampleList.png (1.97 KiB) Viewed 1645 times
This does not imply that this list item also has “focus”. E.g. another element within this window is clicked (e.g, the arrows). I hope you see my point there.