Hi, Why my last step is not executing. In context of this video, the script stops executing at the "Search Button" and doesn't show search result window as it did for you. My Test case shows passed though. Also in Last episode. the test case passed and the login step didn't take me to the saucedemo dashboard after log in. The execution terminated after entering username , password and identifying the login button
Why did we add the identification by Anchor to the I'm Feeling Lucky instead of the Google Search button? Could we flip that around and do so with the Google Search button? Should we?
Because we are trying to identify Google Search button which is not unique and we are using Feeling Lucky button as the anchor control to make it unique. You cannot do it the other way as the anchor control should always be unique.
@@QASCRIPT So to expand, to the word Anchor, are we using the unique "Im Feeling Lucky" button as a point of reference to help it find the non-unique item we are looking for?
Sir, i have a question here, We could have achieved the same by identity the search button using properties & selecting outerHTML. Can you please explain why we didn't follow that approach in this case?
There are multiple ways of achieving the outcome and this is one way. But you should use a method which will work even when the properties will change.
Very nice sir..i quickly understand..Thanks a lot
Always welcome
Hi, Why my last step is not executing. In context of this video, the script stops executing at the "Search Button" and doesn't show search result window as it did for you. My Test case shows passed though. Also in Last episode. the test case passed and the login step didn't take me to the saucedemo dashboard after log in. The execution terminated after entering username , password and identifying the login button
May be it is not clicking on the Search button. Try other ways of clicking the button.
@@QASCRIPT Just found out what the problem was. For clickable object like buttons or link, using 'X' in value instead of (click) works fine
Great
Why did we add the identification by Anchor to the I'm Feeling Lucky instead of the Google Search button? Could we flip that around and do so with the Google Search button? Should we?
Because we are trying to identify Google Search button which is not unique and we are using Feeling Lucky button as the anchor control to make it unique. You cannot do it the other way as the anchor control should always be unique.
@@QASCRIPT So to expand, to the word Anchor, are we using the unique "Im Feeling Lucky" button as a point of reference to help it find the non-unique item we are looking for?
Yes. That's correct
which property is additionally added by Ancher ctrl to that attribute ?
It uses the Anchor Control as a reference to identify other controls
@sunandapavan8538 Relative id
Sir, i have a question here,
We could have achieved the same by identity the search button using properties & selecting outerHTML.
Can you please explain why we didn't follow that approach in this case?
There are multiple ways of achieving the outcome and this is one way. But you should use a method which will work even when the properties will change.
Could you please give me one more example for anchor by control?
Sure