Class UselessFileDetectorReplacement

java.lang.Object
org.jenkinsci.test.acceptance.selenium.UselessFileDetectorReplacement
All Implemented Interfaces:
AutoCloseable

public class UselessFileDetectorReplacement extends Object implements AutoCloseable
Replaces the current FileDetector with the useless one that does nothing. This is handy when you are using a String that is a file that is on a remote system as well as the local one and you do not want Selenium to transfer it across.
  • Constructor Details

    • UselessFileDetectorReplacement

      public UselessFileDetectorReplacement(org.openqa.selenium.WebDriver driver)
      Create a new instance suitable for use in a try-with-resources block. Example usage is:
       
       try (UselessFileDetectorReplacement ufd = new UselessFileDetectorReplacement(driver)) {
         control.setText(someTextThatIsAlsoALocalFileName);
       }
       
       
  • Method Details