Codeless Automation With PlayWright | Playwright - Part 4

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

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

  • @ravi14feb
    @ravi14feb Год назад +1

    Great content, and amazing work you are doing for the QE community.
    I have one simple question, when launching Codegen, unable to see the JavaScript option in the dropdown. using version 1.29.1

    • @letcode
      @letcode  Год назад +1

      Thanks, it will be the library I guess not JS, still if u r not seeing pls update to the latest version.

    • @ravi14feb
      @ravi14feb Год назад +1

      @@letcode yes i can see library , is library same as JavaScript ? appreciate your response

    • @letcode
      @letcode  Год назад

      Yes, both are the same.

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

    Hi koushik,when I have given https site url and its prompting to give pop up window for username and pwd,then how can I handle this situation,tried with "ignoreHTTSErrors" in context then try to fill the content,but playwright not able to detect popup username and pwd?my questions here first how to send context params in command line and how to handle https sites popup forms?

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

      Hi, usually http authentication should be turned off in test environment.
      This scenario is not a good practice to automate.
      Playwright also has removed the http authentication because of security reasons.
      Encoding user name and password in the url will also not work, as chrome has restricted.

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

      There might be another option to do it, but as I said earlier, it's not a good practice

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

    I do not get the recorded code shown in the terminal, is there something I am missing? For now I am just copying from the recorder window.

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

      Yes the behaviour is changed, instead of terminal we will get from the browser window.

  • @sumitgoyal385
    @sumitgoyal385 Год назад +1

    is codegen developed by playwright or its a native code playwright using from some other company/Language? please reply

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

    Hi Koushik, Thanks for the videos. When I run npx playwright codegen , I get an error browserType.launch: No executable path is specified.Pass 'executablePath' option directly. I have passed executablePath: for my other tests while launching with jest and it works fine. With npx I get this and cannot continue.

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

      Codegen is specific to chromium only I guess.
      If you have set path name then it try to execute in other browsers, so code gen doesn't work I guess.

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

      @@letcode I have set path name for chromium browser as it was not working for me if I didn't set the executable path directly but npx playwright codegen doesn't work for me

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

      R u on MAC OS?
      if so pls have a look on this github.com/microsoft/playwright/issues/4722

  • @rajenderbeeramtest
    @rajenderbeeramtest 2 года назад +1

    looks like now recording has changed , some different code is recording and it has some issues, can you please do a video on latest recording options.

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

      The concept is the same, only the UI might have changed.

  • @sumitgoyal385
    @sumitgoyal385 Год назад +1

    have you removed this form from website if not please provide url?

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

    Let suppose if i want to upload a file for one field., Will it handle ?

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

      Yes it can, will make a video soon.

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

      Thanks for bringing such a nice concept

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

    This was amazing!! Can you make some more videos on jest with selenium? It will really help

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

      Selenium Javascript?

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

      @@letcode ya Selenium Javascript with jest. Particularly in salesforce space, Selenium + Javascript + Jest is very high in demand and your videos are really good. It will be amazing if you can make few more of them

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

      Ok sure, thank you ☺️

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

      @@letcode thanks to you!! We will be awaiting for your videos

  • @kumarraj989
    @kumarraj989 Год назад +1

    Hi, Any idea how to handle insecure site error?

    • @letcode
      @letcode  Год назад

      Within the context option u have to pass ignoreHTTPSerror: true

    • @kumarraj989
      @kumarraj989 Год назад

      @@letcode kindly help with sample code. Trying with java+playwright.

  • @bartvisser2358
    @bartvisser2358 3 года назад +2

    nice video, could you make one where you explain to scrape websites

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

    Thank you guy 👍

  • @rahulhonashetty2120
    @rahulhonashetty2120 2 года назад +1

    Hi, for me the code is not generating

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

      There is few changes in the recent version.
      Code will be generated in the console itself. Can you please check that.

    • @rahulhonashetty2120
      @rahulhonashetty2120 2 года назад +1

      Bro, not in console not in inspector tool
      trying to fix since long time but not working

    • @letcode
      @letcode  2 года назад +1

      Recently also i used, it's working fine for me.
      May be u can share the screenshot in our discord channel.
      Link the in channel page.

    • @rahulhonashetty2120
      @rahulhonashetty2120 2 года назад +1

      @@letcode I have shared screenshot can u plz help me bro

  • @nuthanns6486
    @nuthanns6486 2 года назад +1

    Hi, do you give 1 to 1 traning

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

      No, i don't do that.