What is exactly the meaning of "Focus"?

Mobile Testing, Android App Testing.
Incross_qa56
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

Hi,

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.

Questions,
What is exactly "Focus"?

Thank you

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

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.

E.g.
HasFocus.png
HasFocus = true
HasFocus.png (266 Bytes) Viewed 1024 times
HasFocus_false.png
HasFocus = false
HasFocus_false.png (246 Bytes) Viewed 1024 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
SampleList.png (1.97 KiB) Viewed 1024 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.

Regards,
Robert

Regards,
Robert
.
Image