Cross browser testing using Selenium and TestNG

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

КОМЕНТАРІ • 23

  • @sdetadda
    @sdetadda  2 роки тому +2

    Note: we can pass an instance of ChromeOptions class to the web driver initialization to
    manipulate various properties of the Chrome driver.
    ChromeOptions options = new ChromeOptions()
    options.addArgument("incognito");
    ChromeDriver driver = new ChromeDriver(options);
    And here are the list of available and most commonly used arguments for ChromeOptions class -
    incognito: Opens Chrome in incognito mode
    start-maximized: Opens Chrome in maximize mode.
    headless: Opens Chrome in headless mode
    disable-infobars: Prevents Chrome from displaying the notification "Chrome is being controlled by automated software"
    disable-extensions: Disables existing extensions on Chrome browser
    disable-popup-blocking: Disables pop-ups displayed on Chrome browser
    make-default-browser: Makes Chrome default browser.
    version: Prints chrome browser version.

  • @talentvista1119
    @talentvista1119 2 роки тому +3

    Thanks for clear cut explanation. Concepts are getting clear when you explain it. Please upload a series for load testing using jmeter. Thanks.

  • @yogeshraut8531
    @yogeshraut8531 Рік тому +1

    very well explanation, thank you very much sir.

  • @surajdate7828
    @surajdate7828 Рік тому +1

    Thanks you sir! For awesome explanation.

  • @shamanayak3316
    @shamanayak3316 2 місяці тому

    Hi, How do I execute the same code in selenium Grid? What code to write for that?

  • @riyashukla1717
    @riyashukla1717 Рік тому +1

    Thanks for uploading. 👍

  • @vinayreddy936
    @vinayreddy936 Місяць тому +1

    Sir , I have done the same as above. only chrome is getting executed. other two are getting skipped. could you please let me know what would be the reason.

    • @sdetadda
      @sdetadda  20 днів тому

      Please share the code snippet? or error trace?

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

    All browser should open by creating driver object and webdriver manager repository is enough?

  • @sagaromer8385
    @sagaromer8385 7 місяців тому +1

    don't we need a system.setproperty line in creating a browser instance? for different browsers? and also don't need to download drivers externally?

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

    For some reason my maven build is failing time and again. I tried to recreate the project, yet the same problem. P.S - my other maven projects are working fine. Is this maybe because of the dependency?

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

      What are those dependencies added in pom.xml?

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

      @@sdetadda the same ones you added. TestNg, Selenium and the garcia one.

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

    where you store all browser exe files, ex chrome driver exe and edge.

    • @492832
      @492832 10 місяців тому

      He is using WebDriverManager from bonigarcia dependency so it will handle all driver exe files. No need to mention the paths explicitly in code. Even you can explore about Selenium Manager present in selenium 4.0 version.

    • @athirakb4433
      @athirakb4433 8 місяців тому

      Can you share the link for bongarcia dependncy i​@@492832

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

    Why ChromeOptions is used is it necessary

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

      That is not mandatory, however we can pass an instance of ChromeOptions class to the web driver initialization to
      manipulate various properties of the Chrome driver.
      ChromeOptions options = new ChromeOptions()
      options.addArgument("incognito");
      ChromeDriver driver = new ChromeDriver(options);
      And here are the list of available and most commonly used arguments for ChromeOptions class -
      incognito: Opens Chrome in incognito mode
      start-maximized: Opens Chrome in maximize mode.
      headless: Opens Chrome in headless mode
      disable-infobars: Prevents Chrome from displaying the notification "Chrome is being controlled by automated software"
      disable-extensions: Disables existing extensions on Chrome browser
      disable-popup-blocking: Disables pop-ups displayed on Chrome browser
      make-default-browser: Makes Chrome default browser.
      version: Prints chrome browser version.

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

    Plz do videos on Cucumber BDD framework

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

      Noted. Will upload the series with framework design.