Tosca Tutorial | Lesson 6 - Identify Controls By Anchor | Scan Modules |

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 17

  • @abhijeetm9532
    @abhijeetm9532 Рік тому

    Very nice sir..i quickly understand..Thanks a lot

  • @nihar9068
    @nihar9068 11 місяців тому +1

    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

    • @QASCRIPT
      @QASCRIPT  11 місяців тому

      May be it is not clicking on the Search button. Try other ways of clicking the button.

    • @nihar9068
      @nihar9068 11 місяців тому +1

      @@QASCRIPT Just found out what the problem was. For clickable object like buttons or link, using 'X' in value instead of (click) works fine

    • @QASCRIPT
      @QASCRIPT  11 місяців тому

      Great

  • @ryanschlientz9864
    @ryanschlientz9864 Рік тому

    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?

    • @QASCRIPT
      @QASCRIPT  Рік тому +2

      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.

    • @ryanschlientz9864
      @ryanschlientz9864 Рік тому

      @@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?

    • @QASCRIPT
      @QASCRIPT  Рік тому

      Yes. That's correct

  • @sunandapavan8538
    @sunandapavan8538 8 місяців тому

    which property is additionally added by Ancher ctrl to that attribute ?

    • @QASCRIPT
      @QASCRIPT  8 місяців тому

      It uses the Anchor Control as a reference to identify other controls

    • @baluk2067
      @baluk2067 5 місяців тому

      @sunandapavan8538 Relative id

  • @sarthakdas7011
    @sarthakdas7011 Рік тому

    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?

    • @QASCRIPT
      @QASCRIPT  Рік тому

      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.

  • @ArunaSree-n3e
    @ArunaSree-n3e 11 місяців тому

    Could you please give me one more example for anchor by control?