End-to-end testing with NightwatchJS #1: Getting started

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 107

  • @RitikaGupta-j4t
    @RitikaGupta-j4t Год назад

    Very informative videos. I searched a lot and found this and feel so lucky. Also one input that I would like to mention here is:
    To create a config.js file we can all run an empty test and it will automatically create a config file itself.🤗🤗🤗

  • @guitarDad100
    @guitarDad100 3 года назад +1

    Very nice lesson. Great way to start Nightwatch. Thanks for sharing.

  • @TheCodingTrain
    @TheCodingTrain 5 лет назад +3

    Great work!! Excited to follow along..

    • @CodingwithDom
      @CodingwithDom  5 лет назад +1

      I feel honoured to have you stop by and check this out, thank you!

  • @luke11.35
    @luke11.35 5 лет назад

    I love that you just jumped right in with all of it & aren't filtering "off topic" things like Git. Everybody & there parrot has been spitting out tunnel vision tutorials for way too many years. Cheers & keep it up! I hope to be able to use this to implement a solution in my current project situation. 8)

  • @shikhajain5971
    @shikhajain5971 4 года назад +1

    Great work, very helpful and thanks for providing videos on this.
    It really works and easy to understand. I hope you work like this more!!(I rarely give reviews that means it really worth it)

  • @amerrasheed
    @amerrasheed 3 года назад +1

    Nicely explained. Keep it up Dom.

  • @matmccann
    @matmccann 5 лет назад +1

    Dom, I love your videos. I watched through all 8 of this series and really enjoyed it the whole way. 5/5 stars!

  • @cesarmendoza7215
    @cesarmendoza7215 5 лет назад +1

    Thank you so much for posting this, I was looking for something like this to getting started with Nightwatch, I finally could get my first test running :)

  • @girishnair546
    @girishnair546 4 года назад

    Awesome video, very well explained..am glad I found this channel while searching videos on nightwatchjs keep up the great work Dom!! 🤘
    ❤️❤️ From 🇮🇳🇮🇳

  • @suhasramchandra
    @suhasramchandra 4 года назад

    Thank you very much Dom, you helped alot with your video series to start with NightWatch.

  • @blablablabla639
    @blablablabla639 5 лет назад

    Thank you so much Dom. Your courses really help me a lot! Keep up the good work.

  • @gracen9714
    @gracen9714 4 года назад

    I was going down a rabbit hole or errors and exceptions and stackoverflow from/trying different write up tutorials. The only challenge I had as of 04/20/20 was error indicating chromedriver supports 81 only. After failing to update chrome, I was able to downgrade chromedriver using,
    $ CHROMEDRIVER_VERSION=LATEST_80 npm install chromedriver --save-dev
    Videos are so helpful, and yours is especially awesome.
    Thank you so much and please do continue!
    ps even your website is so awesome!

    • @CodingwithDom
      @CodingwithDom  4 года назад

      Thank you Grace for the kind kind words, really appreciate it!

  • @sarahkemily6571
    @sarahkemily6571 5 лет назад +2

    thanksss, this was the better tutorial that I found about nightwatch (and the only one that worked)
    I am from Brazil say hello to meeee

  • @eetigelhu7587
    @eetigelhu7587 5 лет назад +2

    Hi Dom,
    Thanks for the tutorial. It was really helpful.
    I have a question - in the timeline at 10:28 - you have used waitForElementVisible and have added the class.
    Shouldn't you be using something like useCss or useXpath ? I didn't know that you can use the class name just like that. What is the default mode to select class ? Is it something like useClass ???

    • @CodingwithDom
      @CodingwithDom  5 лет назад +1

      Hey! The default in NightwatchJS is CSS selector

  • @mzamomahaeng268
    @mzamomahaeng268 4 года назад +1

    Live coding masterclass wow 👏 👌 😍 excel thanks man

  • @garybermudez7297
    @garybermudez7297 5 лет назад

    Thanks for sharing your knowledge. This is a great intro video!

  • @osirisvilla
    @osirisvilla 5 лет назад

    This video is awesome, helped me a lot! Thanks Dom

  • @rrahll
    @rrahll 5 лет назад +1

    very good speech and a great lesson plan!
    liked and subscribed, wish u all the best!
    thank you ;)

  • @tarun2sam
    @tarun2sam 5 лет назад

    We also need to end our test case on complete, using .end(), and video is very helpfull

  • @ILLIChmaister
    @ILLIChmaister 5 лет назад

    great explanation Dom! 10/10

  • @iordachenicolaev
    @iordachenicolaev 5 лет назад

    Great stuff man. Many thanks for the tutorial.

  • @mihirparmar8319
    @mihirparmar8319 5 лет назад

    Best i have read the doc and found error ur video solved my prb 😍

  • @TheRobiindoodShow
    @TheRobiindoodShow 4 года назад

    Hi guys i was trying to change the defauly browser in nightwatch.conf.js (nightwatch generated file) I want to use chrome and I did all the proper config to use chrome from webdriver installation to changing of ports but whenever i am compiling and running the test I keep on having the connection refused error message and it seems like it keeps on connecting using the default host and port configuration of geckodriver. Please help me im a beginner in Automation testing thanks

  • @manishpatidar5379
    @manishpatidar5379 3 года назад

    Explained very nicely 💐

  • @sallyalfred2871
    @sallyalfred2871 5 лет назад

    Thanks Dom you did great job here thanks for your explanation

  • @TenaciousAbe
    @TenaciousAbe 2 года назад

    Hi there, excellent tutorial, just one thing, I'm getting the following error while starting ChromeDriver on port 9515: Error: spawn node_modukes/. bin/chromedriver ENOENT. Do you know why might this be happening?

  • @nikitakumari689
    @nikitakumari689 3 года назад

    Great! But Getting this "An error occurred while trying to start ChromeDriver: cannot resolve path: "node_modules/.bin/chromedriver".
    Please check that the "webdriver.server_path" config property is set correctly."

  • @allanpgf
    @allanpgf 4 года назад +1

    Nice tutorial and terminal Which one are you using ?

    • @CodingwithDom
      @CodingwithDom  4 года назад

      I'm using the integrated terminal in VSCode with a custom ZSH config. You can see more about my configuration in my dotfiles github.com/aberonni/dotfiles

  • @DHRUUVable
    @DHRUUVable 3 года назад

    How to handle a pop up? I have form to fill but it is in the pop up. How can I handle the switching of windows?

  • @mirkosrndovic
    @mirkosrndovic 2 года назад

    Thank you Dom very much.

  • @andreajohnson8102
    @andreajohnson8102 5 лет назад

    This is great. Wondering what is required for node version for this to work?

  • @rhytuswami6509
    @rhytuswami6509 3 года назад

    i m getting error because i have old version of chrome driver installed, what steps should i take to make it work?

  • @Shinpoke030
    @Shinpoke030 5 лет назад

    dude, awesome video, liked and shared!

  • @mathiaskoerth6737
    @mathiaskoerth6737 5 лет назад

    Hello!
    I am currently working in a project where when I create an account, a login-key is generated. I am having trouble copy and pasting the key. I've tried various methods, but to no avail. It is mostly the paste, that I can't get to work.
    Do you have a suggestion?
    [Tried commands]
    .keys(browser.Keys.CONTROL, "v")
    .keys(browser.Keys.LEFT_CONTROL, "v")
    .keys([browser.Keys.CONTROL, "v"])

  • @umerashraf9632
    @umerashraf9632 5 лет назад

    Hi Dom, I got stuck in a problem i.e. I have set Firefox as my default browser in my nightwatch.json file but for some reason, I keep on getting the following error:
    'Error while running .navigateTo() protocol action: The SSL certificate running on this host cannot be validated. If you wish to force accepting insecure SSL certificates, set acceptInsecureCerts=true in the desiredCapabilities options'
    As suggested in the error I used 'acceptInsecureCerts=true' option under 'desiredCapabilities' for firefox in my nightwatch.json but it still did not work. Any advise any workaround?

  • @drumandvas
    @drumandvas 3 года назад

    Hi Dom, I decided to learn testing, your video is very detailed, however I followed every step, and two times I did everything from scratch and both times I have "Error: no test specified" I am not sure what I did wrong.

  • @sachinsarola2734
    @sachinsarola2734 4 года назад

    when run the command npm test get the error ""An error occurred while trying to start ChromeDriver: cannot resolve path: "node_modules/.bin/chromedriver"."

  • @unabatedshagie
    @unabatedshagie 5 лет назад

    I was following along trying to get this working, first I got an error trying to start ChromeDriver which I managed to fix, now after I've created the test I'm getting an error telling me Timed out while waiting for element to be present for 5000 milliseconds. - expected "visible" but got: "not found"

  • @artBindu
    @artBindu 5 лет назад +1

    show error:
    An error occurred while trying to start ChromeDriver: cannot resolve path: "./node_modules/.bin/chromedriver".
    Please check that the "webdriver.server_path" config property is
    set correctly.
    But I already install chromedriver.
    So, what should i do?

    • @artBindu
      @artBindu 5 лет назад

      Today got solution:
      const chromedriver = require("chromedriver");
      ..................
      ..................
      "webdriver": {
      .......
      "server_path": chromedriver.path,
      .....
      }
      ...........................
      ........................

    • @elizabethseis
      @elizabethseis 5 лет назад +3

      add the complete path node_modules/chromedriver/lib/chromedriver/chromedriver.exe

    • @CodingwithDom
      @CodingwithDom  5 лет назад +1

      There is actually a better cross-platform fix - check the code on GitHub

    • @elizabethseis
      @elizabethseis 5 лет назад

      @@CodingwithDom yeah it works

  • @Toile97
    @Toile97 4 года назад +1

    hello I am a beginer, could you please do a video to show how to downlaod Nightwatch on MacBook.
    I need a help please, i like your videos they are very clear and useful. Thank you

    • @CodingwithDom
      @CodingwithDom  4 года назад

      Hi there, can you let me know with which step of the video you are struggling specifically?

  • @staranand21
    @staranand21 5 лет назад

    Dom, i am getting ---An error occurred while trying to start ChromeDriver: cannot resolve path: "node_modules/.bin/chromedriver".
    Please check that the "webdriver.server_path" config property is set correctly.
    Error: Timeout while trying to connect to ChromeDriver on port 9515.
    at Socket.socketErrorListener (_http_client.js:392:9)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    npm ERR! Test failed. See above for more details

  • @jokalo12
    @jokalo12 4 года назад +1

    Awesome video, what IDE are you using?

  • @akarshgupta27
    @akarshgupta27 5 лет назад

    can anyone tell me, what is the code complete or code suggestion extension for nightwatch in vscode (windows) ?

  •  4 года назад

    Is it possible to do the test sequence with the nightwatch where I do the test first on the login page and then on the next screen?
    If so, how do I do it? The website does not accept cookies.

    • @CodingwithDom
      @CodingwithDom  4 года назад

      Hey there, I think you just need to login in the login screen and then just redirect the user to the next screen. I don't think there should be anything missing from the skills you can learn from my videos. What are you struggling with specifically?

  • @yo1414
    @yo1414 4 года назад

    Thank you - Nicely done!

  • @yanliu6182
    @yanliu6182 5 лет назад

    Great job Dom!

  • @dondl578
    @dondl578 5 лет назад

    I'm having an issue where my test does not read at all. It starts the chrome browser but does nothing else. My main issue is that it will not navigate to a new URL. Is anyone else having this issue? I'm on nightwatch 1.1.12

  • @ВікторНікотін
    @ВікторНікотін 4 года назад

    Many thanks for this tutorial!

  • @shallymehta
    @shallymehta 5 лет назад

    smashed it for a first video tadaaaa

  • @une6two943
    @une6two943 5 лет назад

    awesome job dom!

  • @claudiuferent1122
    @claudiuferent1122 5 лет назад

    Very nice explanation

  • @BOBIKcool
    @BOBIKcool 4 года назад

    Thanks. Nice tutorial.

  • @Man1982ism
    @Man1982ism 5 месяцев назад

    going to tell my grendma, will be soon :).

  • @gozerdestroyer9274
    @gozerdestroyer9274 5 лет назад

    really nice. Finally manage to run it on Ubuntu thanks to U. Whats the code editor?

  • @JohannesClinton
    @JohannesClinton 4 года назад

    Does anyone know how to upload file/photo from our PC folder using Nightwatch?

    • @CodingwithDom
      @CodingwithDom  4 года назад

      I've never done it myself but I found this while googling: stackoverflow.com/questions/24440712/uploading-an-image-file-with-nightwatch-js

  • @slavinyo
    @slavinyo 5 лет назад

    Very helpful!! Thank you.

  • @massimilianodigiacomo2032
    @massimilianodigiacomo2032 5 лет назад

    Grande Domenico!

  • @skmastanvalismv3660
    @skmastanvalismv3660 5 лет назад

    Nice explanation 😀🤗

  • @maulikshah4742
    @maulikshah4742 5 лет назад

    How to run Nightwatch tests on Continuous Integration like Jenkins.

    • @CodingwithDom
      @CodingwithDom  5 лет назад

      That is going to be one of the topics I cover in a future video. Subscribe to make sure you don't miss it! Thanks for dropping by :)

  • @MultiGoodriddance
    @MultiGoodriddance 4 года назад

    Nice Video!

  • @cnt000-
    @cnt000- 5 лет назад

    BIG UP Domenico!

  • @muakissitos
    @muakissitos 5 лет назад

    Grande Dom!!!!!

  • @rko_lnd
    @rko_lnd 5 лет назад

    😀😎

  • @gozerdestroyer9274
    @gozerdestroyer9274 5 лет назад

    Anyone knows how to generate random data in input field?

    • @Shinpoke030
      @Shinpoke030 5 лет назад +1

      try faker.js

    • @gozerdestroyer9274
      @gozerdestroyer9274 5 лет назад

      @@Shinpoke030 got any info how to implement this to nightwatch? cant do it.. chance is working but faker I think is better but cant make it work...

  • @punitnagra5548
    @punitnagra5548 4 года назад

    thank you!

  • @dylos89
    @dylos89 5 лет назад

    What IDE is this?

  • @rosenmihaylov
    @rosenmihaylov 4 года назад

    Very good video but please adjust the microphone better next time. I had hard time hearing you most of the time and the information you give is too valuable to be missunderstood.

  • @Lpcnew
    @Lpcnew 3 года назад

    Nice video!