How To Run Selenium Tests In Headless Mode

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

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

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

    HI mukesh need to know how to setup environment on aws ec2 for running selenium test cases ? what prerequisites required on aws

  • @AkramSiddiqui-dw6kh
    @AkramSiddiqui-dw6kh 10 месяцев назад +1

    can we do video recording of the test execution screen in headless mode with python and selenium

    • @Mukeshotwani
      @Mukeshotwani  10 месяцев назад +1

      Yes Selenium grid allows screen recording in headless mode too.

    • @AkramSiddiqui-dw6kh
      @AkramSiddiqui-dw6kh 10 месяцев назад

      @@Mukeshotwani Thank You Sir for responding. Can we have some resources or tools ?
      I've been following since very long time Sir, learn everything from you sir.
      Thank You.

  • @brunofelix8668
    @brunofelix8668 10 месяцев назад +1

    have you added webdriver manager in the pom file ? i can't see the driver path specification ?

    • @Mukeshotwani
      @Mukeshotwani  10 месяцев назад

      After 4.6 version of Selenium it can manage drivers automatically. www.selenium.dev/documentation/selenium_manager/

  • @maheshg6163
    @maheshg6163 Месяц назад +1

    Hi Mukesh, Can you please create a video for headless mode using the Gradle build tool using eclipse?

    • @Mukeshotwani
      @Mukeshotwani  29 дней назад

      Hi Mahesh, headless have no issue with gradle. This is code changes so once script is ready then you run via maven or gradle it works in same way.

    • @maheshg6163
      @maheshg6163 29 дней назад

      @Mukeshotwani In Jenkins I have configured the build job, in code Level have committed the headless mode , but I don't know still it is running headless mode ? Can you help me out where I can check that issue?

  • @franciscarol7031
    @franciscarol7031 Год назад +2

    How about running headless using Jenkins

    • @Mukeshotwani
      @Mukeshotwani  10 месяцев назад

      Yes we can run in headless mode from Jenkins too.

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

    Hello @All,is headless mode runs with already open browser that is in Remote debugging mode

  • @madhurimamandal1265
    @madhurimamandal1265 10 месяцев назад

    could you have a video covering all the ADVANCED interview questions and answers for SDET Selenium Using JAVA role

  • @ankitanavgire7206
    @ankitanavgire7206 10 месяцев назад +1

    Hi Mukesh, my automation scripts involve user interactions, for.eg. file upload where I am using robot class (not recommended) to interact with the windows file explorer to paste the file path for the application's browse file functionality. Now, since my scripts require user interactions, it is better to run my scripts in non-headless mode. Could you please provide a solution to either handle this browse files/file uploading scenarios in selenium itself or provide steps to execute the scripts by invoking the browse etc through jenkins

    • @Mukeshotwani
      @Mukeshotwani  9 месяцев назад

      Have you tried with sendKeys ? sendKeys with file upload works in headless too.

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

    If i run the test inside teamcity how to achieve . I am using serenity ,cucumber and selenium 4.7 with spring Boot

    • @Mukeshotwani
      @Mukeshotwani  10 месяцев назад

      Teamcity, Jenkins, Bamboo all are CI servers, you can either enable from script or in CI servers too.

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

    Hi mukesh
    I have doubt, how to execute some limited test cases from the framework without closing browser for the each test case

  • @pragnasri2135
    @pragnasri2135 10 месяцев назад +1

    Hi Mukesh can you pls start an end to end API automation testing and it's framework design using selenium with java

    • @Mukeshotwani
      @Mukeshotwani  10 месяцев назад

      Hi Pragna, Do u mean Online series on RUclips or Online Training?

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

    There is light blinking in the background when camera focus on you, take care of it in your next video so that it is not there, apart from it video is awesome. Your well wisher 👍

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

    I am facing a issue on headless chrome when executing from azure DevOps pipeline not getting xpath value.

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

      please check logs and screenshots and change the script locator accordingly.

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

      ​@@Mukeshotwanii am new to automation testing,can you help how to take screenshots and log in azure DevOps for specflow?

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

    In headless mode, we are not opening browser. Does It really need driver.quit() line?

    • @Mukeshotwani
      @Mukeshotwani  10 месяцев назад

      yes in order to kill the process

  • @mayuringole9679
    @mayuringole9679 6 месяцев назад +1

    I have one question
    If I run headless then how will my selenium code will will take elements ??
    It is showing like this
    With headless
    (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
    But normally it is running without headless

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

    Can you make on video headless in edge browser

    • @Mukeshotwani
      @Mukeshotwani  11 месяцев назад

      Here we go ruclips.net/video/4MG08fBp7kc/видео.html

  • @automationdaytoday7983
    @automationdaytoday7983 7 месяцев назад

    In a headless mode if we try to click on the copy link button and try to check if it is copied on clipboard or not. Then it's not working. Is there any solution for that in headless mode in selenium.

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

    How can we automate windows operations in headless mode? Like upload a file?

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

    It is good concept of htmlunit

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

    Hi Mukesh
    hopefully you are doing good.. --Headless=new is working on current machine ,but when try to build in jenkins then it's not working .

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

      hii sohaibnaseer can u guide me regarding this ? means i want to run this testcases using jenkins?

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

    Hi I added same code but still is running chrome only.
    it is real project. I using selenium cucumber
    please help me on this

  • @KushalKumar-fn9vv
    @KushalKumar-fn9vv Год назад +1

    Why we are not using HtmlUnit Driver here??

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

    It's not so easy when u run in jenkins server. You will see lot lot of issues for even click. You have to use explicit waits, js , so many to make it run in server with headless mode

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

      I'm facing same issue in click is not working both explicitwait and Java script plz suggest me if u resolve this problem