@@ -128,7 +128,7 @@ public void addLocationStrategy(String strategyName, String functionDefinition)
128
128
* locator in multiple arguments when executing the JavaScript function. <br>
129
129
* <br>
130
130
* Example:
131
- * <table border="1" cellspacing="0">
131
+ * <table border="1" cellspacing="0" summary="" >
132
132
* <tr>
133
133
* <td>Add Location Strategy</td>
134
134
* <td>byId</td>
@@ -142,7 +142,7 @@ public void addLocationStrategy(String strategyName, String functionDefinition)
142
142
* </table>
143
143
* <br>
144
144
* Example with delimiter:
145
- * <table border="1" cellspacing="0">
145
+ * <table border="1" cellspacing="0" summary="" >
146
146
* <tr>
147
147
* <td>Add Location Strategy</td>
148
148
* <td>byClassname</td>
@@ -215,7 +215,7 @@ public String openBrowser(String url, String browserName, String alias, String r
215
215
* Opens a new browser instance to given URL.<br>
216
216
* <br>
217
217
* Possible values for browser are as follows:
218
- * <table border="1" cellspacing="0">
218
+ * <table border="1" cellspacing="0" summary="" >
219
219
* <tr>
220
220
* <td>firefox</td>
221
221
* <td>FireFox</td>
@@ -288,14 +288,14 @@ public String openBrowser(String url, String browserName, String alias, String r
288
288
* proxy, can be configured.<br>
289
289
* <br>
290
290
* Example of desiredCapabilities as simple string:<br>
291
- * <table border="1" cellspacing="0">
291
+ * <table border="1" cellspacing="0" summary="" >
292
292
* <tr>
293
293
* <td>platform:Windows 8,browserName:firefox,version:25</td>
294
294
* </tr>
295
295
* </table>
296
296
* <br>
297
297
* Example of desiredCapabilities as JSON object:<br>
298
- * <table border="1" cellspacing="0">
298
+ * <table border="1" cellspacing="0" summary="" >
299
299
* <tr>
300
300
* <td>
301
301
* {<br>
@@ -318,7 +318,7 @@ public String openBrowser(String url, String browserName, String alias, String r
318
318
* with the listed options are implemented.<br>
319
319
* <br>
320
320
* Firefox:
321
- * <table border="1" cellspacing="0">
321
+ * <table border="1" cellspacing="0" summary="" >
322
322
* <tr>
323
323
* <td>
324
324
* {<br>
@@ -355,7 +355,7 @@ public String openBrowser(String url, String browserName, String alias, String r
355
355
* instance. The alias can be used later for switching between
356
356
* browsers instances, just as returned index.
357
357
* @param remoteUrl
358
- * Default=NONE . Optional remote grid URL. When specified no
358
+ * Default=False . Optional remote grid URL. When specified no
359
359
* local WebDriver instance is created, but a network connection
360
360
* to a Selenium 2 WebDriver Grid Hub at the given URL is opened.
361
361
* @param desiredCapabilities
@@ -367,14 +367,17 @@ public String openBrowser(String url, String browserName, String alias, String r
367
367
* href=
368
368
* "http://code.google.com/p/selenium/wiki/DesiredCapabilities"
369
369
* >DesiredCapabilities</a>
370
+ * @param browserOptions
371
+ * Default=NONE. Extended browser options as JSON structure.
370
372
* @return The index of the newly created browser instance.
373
+ * @throws Throwable - if anything goes wrong
371
374
*
372
375
* @see BrowserManagement#closeAllBrowsers
373
376
* @see BrowserManagement#closeBrowser
374
377
* @see BrowserManagement#switchBrowser
375
378
*/
376
379
@ RobotKeyword
377
- @ ArgumentNames ({ "url" , "browserName=firefox" , "alias=NONE" , "remoteUrl=NONE " , "desiredCapabilities=NONE" ,
380
+ @ ArgumentNames ({ "url" , "browserName=firefox" , "alias=NONE" , "remoteUrl=False " , "desiredCapabilities=NONE" ,
378
381
"browserOptions=NONE" })
379
382
public String openBrowser (String url , String browserName , String alias , String remoteUrl ,
380
383
String desiredCapabilities , String browserOptions ) throws Throwable {
@@ -412,7 +415,7 @@ public String openBrowser(String url, String browserName, String alias, String r
412
415
* it.<br>
413
416
* <br>
414
417
* Example:
415
- * <table border="1" cellspacing="0">
418
+ * <table border="1" cellspacing="0" summary="" >
416
419
* <tr>
417
420
* <td>Open Browser</td>
418
421
* <td>http://google.com</td>
@@ -473,7 +476,7 @@ public String openBrowser(String url, String browserName, String alias, String r
473
476
* opening the first one because it used index '1' when switching to it
474
477
* later. If you aren't sure about that you can store the index into a
475
478
* variable as below.
476
- * <table border="1" cellspacing="0">
479
+ * <table border="1" cellspacing="0" summary="" >
477
480
* <tr>
478
481
* <td>${id} =</td>
479
482
* <td>Open Browser</td>
@@ -589,7 +592,7 @@ public void maximizeBrowserWindow() {
589
592
* Returns current window size as <b>width</b> then <b>height</b>.<br>
590
593
* <br>
591
594
* Example:
592
- * <table border="1" cellspacing="0">
595
+ * <table border="1" cellspacing="0" summary="" >
593
596
* <tr>
594
597
* <td>${width}</td>
595
598
* <td>${height}=</td>
@@ -599,6 +602,7 @@ public void maximizeBrowserWindow() {
599
602
*
600
603
* @return The window <b>width</b> and <b>height</b> in px.
601
604
*/
605
+ @ RobotKeyword
602
606
public Object [] getWindowSize () {
603
607
Dimension size = getCurrentWebDriver ().manage ().window ().getSize ();
604
608
return new Object [] { Integer .toString (size .width ), Integer .toString (size .height ) };
@@ -609,7 +613,7 @@ public Object[] getWindowSize() {
609
613
* specified values.<br>
610
614
* <br>
611
615
* Example:
612
- * <table border="1" cellspacing="0">
616
+ * <table border="1" cellspacing="0" summary="" >
613
617
* <tr>
614
618
* <td>Set Window Size</td>
615
619
* <td>800</td>
@@ -681,7 +685,7 @@ public void selectWindow() {
681
685
* The special locator main (default) can be used to select the main window.<br>
682
686
* <br>
683
687
* Example:
684
- * <table border="1" cellspacing="0">
688
+ * <table border="1" cellspacing="0" summary="" >
685
689
* <tr>
686
690
* <td>Click Link</td>
687
691
* <td>popup_link</td>
@@ -707,7 +711,7 @@ public void selectWindow() {
707
711
* It is also possible to specify the approach Selenium2Library should take
708
712
* to find a window by specifying a locator strategy. See `Introduction` for
709
713
* details about locators:
710
- * <table border="1" cellspacing="0">
714
+ * <table border="1" cellspacing="0" summary="" >
711
715
* <tr>
712
716
* <td><b>Strategy</b></td>
713
717
* <td><b>Example</b></td>
@@ -1045,7 +1049,7 @@ public String getSeleniumTimeout() {
1045
1049
* can be altered in importing the library.<br>
1046
1050
* <br>
1047
1051
* Example:
1048
- * <table border="1" cellspacing="0">
1052
+ * <table border="1" cellspacing="0" summary="" >
1049
1053
* <tr>
1050
1054
* <td>${orig timeout} =</td>
1051
1055
* <td>Set Selenium Timeout</td>
@@ -1104,7 +1108,7 @@ public String getSeleniumImplicitWait() {
1104
1108
* to be called one time per session.</i><br>
1105
1109
* <br>
1106
1110
* Example:
1107
- * <table border="1" cellspacing="0">
1111
+ * <table border="1" cellspacing="0" summary="" >
1108
1112
* <tr>
1109
1113
* <td>${orig wait} =</td>
1110
1114
* <td>Set Selenium Implicit Wait</td>
@@ -1151,7 +1155,7 @@ public String setSeleniumImplicitWait(String timestr) {
1151
1155
* to be called one time per session.</i><br>
1152
1156
* <br>
1153
1157
* Example:
1154
- * <table border="1" cellspacing="0">
1158
+ * <table border="1" cellspacing="0" summary="" >
1155
1159
* <tr>
1156
1160
* <td>${orig wait} =</td>
1157
1161
* <td>Set Browser Implicit Wait</td>
0 commit comments