findElements or $$ in WebDriverIO - Part - 5

Sdílet
Vložit
  • čas přidán 23. 08. 2024
  • #webdriverio #nodejs #javascript #automation
    In this video, I have explained how to find multiple elements in WebDriverIO.
    Learn:
    - how to create page objects in WebDriverIO
    - What is $$ in WebDriverIO
    - Create WebElement and WebElements in Page Class
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    www.youtube.co...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/...
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautom...
    API Course: www.naveenautom...

Komentáře • 20

  • @supriyamishra5968
    @supriyamishra5968 Před 4 lety +1

    Hi Naveen
    Nice One!

  • @stith_pragya
    @stith_pragya Před 3 lety +2

    SOLUTION -
    Hii All, it is compulsory to be babel installed and babel.config.js file should be present inside your project to use import and require statements in the code otherwise you will get error -
    error 1 - unable to load spec files quite likely because they rely on 'browser' object that is not fully initialized.
    error 2 - import / require cannot be used like this.
    Naveen have not mentioned these things in the video, because may be at that moment, it was not a compulsory thing to have babel installed and babel.config.js file.

    • @mathiascarranza3408
      @mathiascarranza3408 Před 2 lety

      Tushar babel is another compiler? This code will not work under Visual Studio?

  • @SarangHoley
    @SarangHoley Před 4 lety +1

    Thanks for the video 👍😊

  • @shilpakothari990
    @shilpakothari990 Před 3 lety

    Hi Naveen thanks for the video.

  • @binitpatel
    @binitpatel Před rokem

    this is great, but how do you find a div with class that contain specific text
    for example on my page, I have two div tags that contains same text. However one of the div tag does not have a class, and I need to select a div tag that has class with specific text.
    Like,

  • @stith_pragya
    @stith_pragya Před 3 lety

    Hi Naveen, one question here -
    In webdriverIO series, you explained how to print text of each element from list of elements but the problem is by using your method of doing it or by using any method of printing this, I am always getting an issue that it prints nothing in the console. I used it in many ways on many elements list of many websites and searched a lot on the internet but nothing happened till now. So, please help me........

  • @venkatjakkepalli4833
    @venkatjakkepalli4833 Před 4 lety

    Hi naveen,
    How to Automate the download and cancel using webdriverio and how we can assert the downloaded file name.

  • @pavankumar5419
    @pavankumar5419 Před 4 lety

    Hi Naveen,
    I'm working on WDIO with Mocha and cucumber. I'm facing issue as how to set cookies via command line ??

  • @aleksandarmarkovic7699
    @aleksandarmarkovic7699 Před 3 lety +1

    Hi Naven, can I use clasic xpath for mapping elements in WebdriverIO like a xpath = "//input[@id = 'txtUsername']"

  • @downhill4k750
    @downhill4k750 Před 3 lety

    Sync plugin is no more available for new version , so need to use await always .so i could not able to follow your videos in POM .Always getting error this is not a function like. So please find a solution

  • @muthufazer
    @muthufazer Před 4 lety

    Guys any one pls tell me whether node js will run in Internet explorer browser.
    i want to know how to configure ie driver in webdriverio can u please help me

  • @testvitacost8916
    @testvitacost8916 Před 4 lety

    How to click each link using forEach loop. When i try to click i'm facing couple of issues:
    1. java.net.SocketException: Connection reset by peer (connect failed)
    running chrome on desktop
    Error: An unknown server-side error occurred while processing the command.
    at elementIdAttribute("0.4605902112267328-6", "href") - getAttribute.js:43:55
    2. Timeout of 60000ms exceeded. The execution in the test " 'describe' 'it' " took too long. Try to reduce the run time or increase your timeout for test specs (webdriver.io/docs/timeouts.html).

  • @totox6886
    @totox6886 Před 4 lety

    npm runt test throws error. what can be issue. i am able to run my tests with npx wdio wdio.conf.js command. can anyone suggest

    • @stith_pragya
      @stith_pragya Před 3 lety

      you should update your package.js file.....in that file in test : ""; line you should write wdio in between the double quotes and then your npm run test command will work correctly.