Thanks very much for the links
They have helped with my understanding somewhat (I think)
The selector consists of the last node which represents the GUI element that interests you and previous nodes are the parents.
This is my understanding (I may be way off):
So for the first question you are attaching a browser so you would look at the last 2 answers as they both have nodes containing a browser element (the second answer looks like it’s web related, a control element from the browser but the browser isn’t defined).
So what makes 3 right and 4 wrong? Ans 4 has a node which is defining a specific element from the browser (the webctrl element) so it’s too specific here we just want to attach the entire browser in the activity.
For the second question the difference between full and partial selectors is that partial selectors are used when already enclosed in a container (Attach browser or Attach Window) so they don’t need to show the top level part of the selector (i.e. the application)
This means in the question 9 example where we are looking for full selectors we are going to need to see an application node as the first part of the selector in this case ans 1 and ans 3.
I think that the quizzes should have full descriptions of the answers when you are checking your results so you can understand the things you need to clarify instead of just showing the correct answers that you’ve chosen without any explanation of those you got wrong, (maybe this encourages you to go and look for yourself to find the answer but it might also be good to have a full explanation to clarify the solution in case after looking for yourself you end up having got the wrong end of the stick, I’m hoping I haven’t in this case but I might have which is why I’ve outlined my understanding of the answers) you may even want clarification of the ones you got right (maybe you guessed an answer).
Anyway big thanks to @sreekanth for the help and I will look in the docs sections going forward for fuller understanding about various knowledge gaps (however I do think that in the training at least links to these should have been given if questions about them are going to be asked and the material not covered in the training itself)
Just for anyone that is reading this Lesson 6 is all about selectors so hopefully this lesson will enlighten anyone having trouble with these selector questions (maybe they should be in the Lesson 6 quiz rather than the Lesson 4 quiz where selectors haven’t really been covered)