@@ -40,7 +40,7 @@ namespace OpenQA.Selenium.Remote
4040 /// [SetUp]
4141 /// public void SetUp()
4242 /// {
43- /// driver = new RemoteWebDriver(new Uri("http://127.0.0.1:4444/wd/hub"),DesiredCapabilities.InternetExplorer ());
43+ /// driver = new RemoteWebDriver(new Uri("http://127.0.0.1:4444/wd/hub"),new FirefoxOptions ());
4444 /// }
4545 /// <para></para>
4646 /// [Test]
@@ -88,9 +88,9 @@ public RemoteWebDriver(DriverOptions options)
8888 /// <summary>
8989 /// Initializes a new instance of the <see cref="RemoteWebDriver"/> class. This constructor defaults proxy to http://127.0.0.1:4444/wd/hub
9090 /// </summary>
91- /// <param name="desiredCapabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
92- public RemoteWebDriver ( ICapabilities desiredCapabilities )
93- : this ( new Uri ( DefaultRemoteServerUrl ) , desiredCapabilities )
91+ /// <param name="capabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
92+ public RemoteWebDriver ( ICapabilities capabilities )
93+ : this ( new Uri ( DefaultRemoteServerUrl ) , capabilities )
9494 {
9595 }
9696
@@ -108,30 +108,30 @@ public RemoteWebDriver(Uri remoteAddress, DriverOptions options)
108108 /// Initializes a new instance of the <see cref="RemoteWebDriver"/> class
109109 /// </summary>
110110 /// <param name="remoteAddress">URI containing the address of the WebDriver remote server (e.g. http://127.0.0.1:4444/wd/hub).</param>
111- /// <param name="desiredCapabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
112- public RemoteWebDriver ( Uri remoteAddress , ICapabilities desiredCapabilities )
113- : this ( remoteAddress , desiredCapabilities , RemoteWebDriver . DefaultCommandTimeout )
111+ /// <param name="capabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
112+ public RemoteWebDriver ( Uri remoteAddress , ICapabilities capabilities )
113+ : this ( remoteAddress , capabilities , RemoteWebDriver . DefaultCommandTimeout )
114114 {
115115 }
116116
117117 /// <summary>
118118 /// Initializes a new instance of the <see cref="RemoteWebDriver"/> class using the specified remote address, desired capabilities, and command timeout.
119119 /// </summary>
120120 /// <param name="remoteAddress">URI containing the address of the WebDriver remote server (e.g. http://127.0.0.1:4444/wd/hub).</param>
121- /// <param name="desiredCapabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
121+ /// <param name="capabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
122122 /// <param name="commandTimeout">The maximum amount of time to wait for each command.</param>
123- public RemoteWebDriver ( Uri remoteAddress , ICapabilities desiredCapabilities , TimeSpan commandTimeout )
124- : this ( new HttpCommandExecutor ( remoteAddress , commandTimeout ) , desiredCapabilities )
123+ public RemoteWebDriver ( Uri remoteAddress , ICapabilities capabilities , TimeSpan commandTimeout )
124+ : this ( new HttpCommandExecutor ( remoteAddress , commandTimeout ) , capabilities )
125125 {
126126 }
127127
128128 /// <summary>
129129 /// Initializes a new instance of the <see cref="RemoteWebDriver"/> class
130130 /// </summary>
131131 /// <param name="commandExecutor">An <see cref="ICommandExecutor"/> object which executes commands for the driver.</param>
132- /// <param name="desiredCapabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
133- public RemoteWebDriver ( ICommandExecutor commandExecutor , ICapabilities desiredCapabilities )
134- : base ( commandExecutor , desiredCapabilities )
132+ /// <param name="capabilities ">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
133+ public RemoteWebDriver ( ICommandExecutor commandExecutor , ICapabilities capabilities )
134+ : base ( commandExecutor , capabilities )
135135 {
136136 }
137137
@@ -150,7 +150,7 @@ public bool HasActiveDevToolsSession
150150 /// <returns>IWebElement object so that you can interact with that object</returns>
151151 /// <example>
152152 /// <code>
153- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
153+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
154154 /// IWebElement elem = driver.FindElementById("id")
155155 /// </code>
156156 /// </example>
@@ -166,7 +166,7 @@ public IWebElement FindElementById(string id)
166166 /// <returns>ReadOnlyCollection of Elements that match the object so that you can interact that object</returns>
167167 /// <example>
168168 /// <code>
169- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
169+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
170170 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsById("id")
171171 /// </code>
172172 /// </example>
@@ -192,7 +192,7 @@ public ReadOnlyCollection<IWebElement> FindElementsById(string id)
192192 /// <returns>IWebElement object so that you can interact that object</returns>
193193 /// <example>
194194 /// <code>
195- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
195+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
196196 /// IWebElement elem = driver.FindElementByClassName("classname")
197197 /// </code>
198198 /// </example>
@@ -218,7 +218,7 @@ public IWebElement FindElementByClassName(string className)
218218 /// <returns>ReadOnlyCollection of IWebElement object so that you can interact with those objects</returns>
219219 /// <example>
220220 /// <code>
221- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
221+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
222222 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByClassName("classname")
223223 /// </code>
224224 /// </example>
@@ -244,7 +244,7 @@ public ReadOnlyCollection<IWebElement> FindElementsByClassName(string className)
244244 /// <returns>IWebElement object so that you can interact that object</returns>
245245 /// <example>
246246 /// <code>
247- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
247+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
248248 /// IWebElement elem = driver.FindElementsByLinkText("linktext")
249249 /// </code>
250250 /// </example>
@@ -260,7 +260,7 @@ public IWebElement FindElementByLinkText(string linkText)
260260 /// <returns>ReadOnlyCollection<![CDATA[<IWebElement>]]> object so that you can interact with those objects</returns>
261261 /// <example>
262262 /// <code>
263- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
263+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
264264 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByClassName("classname")
265265 /// </code>
266266 /// </example>
@@ -276,7 +276,7 @@ public ReadOnlyCollection<IWebElement> FindElementsByLinkText(string linkText)
276276 /// <returns>IWebElement object so that you can interact that object</returns>
277277 /// <example>
278278 /// <code>
279- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
279+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
280280 /// IWebElement elem = driver.FindElementsByPartialLinkText("partOfLink")
281281 /// </code>
282282 /// </example>
@@ -292,7 +292,7 @@ public IWebElement FindElementByPartialLinkText(string partialLinkText)
292292 /// <returns>ReadOnlyCollection<![CDATA[<IWebElement>]]> objects so that you can interact that object</returns>
293293 /// <example>
294294 /// <code>
295- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
295+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
296296 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByPartialLinkText("partOfTheLink")
297297 /// </code>
298298 /// </example>
@@ -308,7 +308,7 @@ public ReadOnlyCollection<IWebElement> FindElementsByPartialLinkText(string part
308308 /// <returns>IWebElement object so that you can interact that object</returns>
309309 /// <example>
310310 /// <code>
311- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
311+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
312312 /// elem = driver.FindElementsByName("name")
313313 /// </code>
314314 /// </example>
@@ -324,7 +324,7 @@ public IWebElement FindElementByName(string name)
324324 /// <returns>ReadOnlyCollect of IWebElement objects so that you can interact that object</returns>
325325 /// <example>
326326 /// <code>
327- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
327+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
328328 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByName("name")
329329 /// </code>
330330 /// </example>
@@ -340,7 +340,7 @@ public ReadOnlyCollection<IWebElement> FindElementsByName(string name)
340340 /// <returns>IWebElement object so that you can interact that object</returns>
341341 /// <example>
342342 /// <code>
343- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
343+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
344344 /// IWebElement elem = driver.FindElementsByTagName("tag")
345345 /// </code>
346346 /// </example>
@@ -356,7 +356,7 @@ public IWebElement FindElementByTagName(string tagName)
356356 /// <returns>IWebElement object so that you can interact that object</returns>
357357 /// <example>
358358 /// <code>
359- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
359+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
360360 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByTagName("tag")
361361 /// </code>
362362 /// </example>
@@ -372,7 +372,7 @@ public ReadOnlyCollection<IWebElement> FindElementsByTagName(string tagName)
372372 /// <returns>IWebElement object so that you can interact that object</returns>
373373 /// <example>
374374 /// <code>
375- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
375+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
376376 /// IWebElement elem = driver.FindElementsByXPath("//table/tbody/tr/td/a");
377377 /// </code>
378378 /// </example>
@@ -388,7 +388,7 @@ public IWebElement FindElementByXPath(string xpath)
388388 /// <returns>ReadOnlyCollection of IWebElement objects so that you can interact that object</returns>
389389 /// <example>
390390 /// <code>
391- /// IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox ());
391+ /// IWebDriver driver = new RemoteWebDriver(new FirefoxOptions ());
392392 /// ReadOnlyCollection<![CDATA[<IWebElement>]]> elem = driver.FindElementsByXpath("//tr/td/a")
393393 /// </code>
394394 /// </example>
0 commit comments