Class UselessFileDetectorReplacement
- java.lang.Object
-
- org.jenkinsci.test.acceptance.selenium.UselessFileDetectorReplacement
-
- All Implemented Interfaces:
AutoCloseable
public class UselessFileDetectorReplacement extends Object implements AutoCloseable
Replaces the currentFileDetector
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 Summary
Constructors Constructor Description UselessFileDetectorReplacement(org.openqa.selenium.WebDriver driver)
Create a new instance suitable for use in a try-with-resources block.
-
-
-
Constructor Detail
-
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 Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-