Run Selenium on an Already Opened Browser | How to use test cases on an already opened browser | SN

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 11

  • @akhile9450
    @akhile9450 2 ปีที่แล้ว +1

    Can you please do the same on edge?

  • @ninjamoshi5708
    @ninjamoshi5708 2 ปีที่แล้ว

    how to download the file to a specific directory instead of the default folder ? i am not able to change the download folder when using selenium on an Already Opened Browser pls help

    • @ninjamoshi5708
      @ninjamoshi5708 2 ปีที่แล้ว

      pls help out using python preferably

    • @seleniumninja
      @seleniumninja  2 ปีที่แล้ว

      You can move the downloaded files to a specific folder and then use them in the project. Also, you can use a maven project, where you can dependencies in the pom.xml file, It is easier to download the dependencies.

  • @IlyaArlenka
    @IlyaArlenka 2 ปีที่แล้ว +1

    And what are the pros for this way? I didn't get it, sorry

    • @seleniumninja
      @seleniumninja  2 ปีที่แล้ว

      It is a concept in Selenium. It's your choice where you want to implement it.

    • @IlyaArlenka
      @IlyaArlenka 2 ปีที่แล้ว

      I mean as far as I remember you said that it can save a lot of time. So I cannot see how it can save time

    • @seleniumninja
      @seleniumninja  2 ปีที่แล้ว

      @@IlyaArlenka When used as a unit test for some purpose, it can save time. If you only need to test a portion of the application in a real-time project, you can do so. This feature can be used in any situation where it is beneficial.

  • @Chamara.i
    @Chamara.i 2 ปีที่แล้ว

    I got following error once run the test. org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: cannot connect to chrome at localhost:1010
    Anyoption to fix this. I have use setBinary() method as well. but still cannot fix it