File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
java/src/org/openqa/selenium/opera Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 31
31
import org .openqa .selenium .remote .html5 .RemoteWebStorage ;
32
32
import org .openqa .selenium .remote .service .DriverCommandExecutor ;
33
33
34
+ import java .io .File ;
35
+
34
36
/**
35
37
* A {@link WebDriver} implementation that controls a Blink-based Opera browser running on the local
36
38
* machine. It requires an <code>operadriver</code> executable to be available in PATH.
37
39
*
38
40
* @see <a href="https://github.com/operasoftware/operachromiumdriver">operadriver</a>
41
+ *
42
+ * Since operadriver does not support w3c, Selenium will remove the support in the next version.
43
+ * @deprecated Use {@link org.openqa.selenium.chrome.ChromeDriver} with
44
+ * {@link org.openqa.selenium.chrome.ChromeOptions#setBinary(File)} or {@link org.openqa.selenium.chrome.ChromeOptions#setBinary(String)}
45
+ * to set the path to the Opera browser.
46
+ *
47
+ * <p>Example usage:
48
+ * <pre><code>
49
+ * ChromeOptions options = new ChromeOptions()
50
+ * options.setBinary(new File("/path/to/opera"));
51
+ *
52
+ * // For using Opera browser with ChromeDriver:
53
+ * ChromeDriver driver = new ChromeDriver(options);
54
+ *
55
+ * // For use with RemoteWebDriver:
56
+ * ChromeOptions options = new ChromeOptions();
57
+ * options.setBinary(new File("/path/to/opera"));
58
+ * RemoteWebDriver driver = new RemoteWebDriver(
59
+ * new URL("http://localhost:4444/"), options);
60
+ * </code></pre>
39
61
*/
62
+ @ Deprecated
40
63
public class OperaDriver extends RemoteWebDriver
41
64
implements LocationContext , WebStorage {
42
65
Original file line number Diff line number Diff line change 48
48
* RemoteWebDriver driver = new RemoteWebDriver(
49
49
* new URL("http://localhost:4444/"), options);
50
50
* </code></pre>
51
+ *
52
+ * Since operadriver does not support w3c, Selenium will remove the support in the next version.
53
+ * @deprecated Use {@link org.openqa.selenium.chrome.ChromeDriver} with
54
+ * {@link org.openqa.selenium.chrome.ChromeOptions#setBinary(File)} or {@link org.openqa.selenium.chrome.ChromeOptions#setBinary(String)}
55
+ * to set the path to the Opera browser.
56
+ *
57
+ * <p>Example usage:
58
+ * <pre><code>
59
+ * ChromeOptions options = new ChromeOptions()
60
+ * options.setBinary(new File("/path/to/opera"));
61
+ *
62
+ * // For using Opera browser with ChromeDriver:
63
+ * ChromeDriver driver = new ChromeDriver(options);
64
+ *
65
+ * // For use with RemoteWebDriver:
66
+ * ChromeOptions options = new ChromeOptions();
67
+ * options.setBinary(new File("/path/to/opera"));
68
+ * RemoteWebDriver driver = new RemoteWebDriver(
69
+ * new URL("http://localhost:4444/"), options);
70
+ * </code></pre>
51
71
*/
72
+ @ Deprecated
52
73
public class OperaOptions extends AbstractDriverOptions <OperaOptions > {
53
74
54
75
/**
You can’t perform that action at this time.
0 commit comments