FindElements | List of WebElements | Handling Multiple WebElements

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

КОМЕНТАРІ • 18

  • @sahil0069
    @sahil0069 2 роки тому

    How we can click on multiple webelements with same xpath in a container using for loop?

  • @jitendrasawant3872
    @jitendrasawant3872 4 роки тому

    How to iterate two list of WebElements and print the values one by one to perform some action in selenium(First value from one list and second value from second list)

  • @bengalichic9333
    @bengalichic9333 3 роки тому

    can you make this a dynamic method and call it in your testclass?

  • @sheetalmeshram4385
    @sheetalmeshram4385 2 роки тому

    the demo page of newtour is not available

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

    Hi Bro, I need ur help, I try to iterate the list of webelements, but I didn't not access the elements. Can u please help me to sort out this.

  • @rupakumari9704
    @rupakumari9704 3 роки тому

    your video is very helpful and easy to understand

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

    How we can click on multiple elements with same classnane

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

      Use the method findElements and save the list of elements in a variable
      Then u can use a ForEach loop to loop through each element and click on each one.
      Let me kn if u need the code .

  • @ishmamnaveel2198
    @ishmamnaveel2198 3 роки тому

    how to return this webelement when using page object model??

    • @Automationzone
      @Automationzone  2 роки тому +1

      What u have to do is,
      keep class for identifying and returning the elements seperate.
      And then you create a test case which basically imports these classes and will perform actions on these elements to create actions.
      I will add it to the list of topics we need to cover ... But will it might take a while due to my existence job timings.
      I hope it helps..if u have anything else do email me

  • @bhagbatinayak8296
    @bhagbatinayak8296 2 роки тому +1

    What is LIST here ? Is this a Class or just a keyword ? And what is the concept to surround the WebElement class ?

    • @Automationzone
      @Automationzone  2 роки тому

      Hi bhagbati, list is a collection and it's a Java concept.
      Eg :- String fruit = "apple";
      This will save one string
      List fruits
      Now u can save multiple strings in the list variable fruits.

    • @bhagbatinayak8296
      @bhagbatinayak8296 2 роки тому

      @@Automationzone - Thank you so much for your response.

  • @girishkumar-kp2jw
    @girishkumar-kp2jw 4 роки тому +1

    Hi , How can u add this list to excel in one column

    • @Automationzone
      @Automationzone  4 роки тому

      I will show this in an upcoming video, but basically you need to use a module like xlrd and a few loops to write this data to an excel spreadsheet.

  • @sohailvirkPHPDeveloper
    @sohailvirkPHPDeveloper 3 роки тому

    very good explanation bro

  • @realsubhajitpatra
    @realsubhajitpatra 4 роки тому

    Hello