@@ -2761,7 +2761,7 @@ trait WebBrowser {
2761
2761
* @param url the URL to which to send the browser
2762
2762
* @param driver the <code>WebDriver</code> with which to drive the browser
2763
2763
*/
2764
- def to (url : String )(implicit driver : WebDriver ): Unit = {
2764
+ /* infix */ def to (url : String )(implicit driver : WebDriver ): Unit = {
2765
2765
driver.get(url)
2766
2766
}
2767
2767
@@ -2780,7 +2780,7 @@ trait WebBrowser {
2780
2780
* @param page the <code>Page</code> object containing the URL to which to send the browser
2781
2781
* @param driver the <code>WebDriver</code> with which to drive the browser
2782
2782
*/
2783
- def to (page : Page )(implicit driver : WebDriver ): Unit = {
2783
+ /* infix */ def to (page : Page )(implicit driver : WebDriver ): Unit = {
2784
2784
driver.get(page.url)
2785
2785
}
2786
2786
}
@@ -3889,7 +3889,7 @@ trait WebBrowser {
3889
3889
*
3890
3890
* @param element the <code>WebElement</code> to click on
3891
3891
*/
3892
- def on (element : WebElement ): Unit = {
3892
+ /* infix */ def on (element : WebElement ): Unit = {
3893
3893
element.click()
3894
3894
}
3895
3895
@@ -3899,7 +3899,7 @@ trait WebBrowser {
3899
3899
* @param query the <code>Query</code> with which to search
3900
3900
* @param driver the <code>WebDriver</code> with which to drive the browser
3901
3901
*/
3902
- def on (query : Query )(implicit driver : WebDriver ): Unit = {
3902
+ /* infix */ def on (query : Query )(implicit driver : WebDriver ): Unit = {
3903
3903
query.webElement.click()
3904
3904
}
3905
3905
@@ -3909,7 +3909,7 @@ trait WebBrowser {
3909
3909
* @param queryString the string with which to search, first by ID then by name
3910
3910
* @param driver the <code>WebDriver</code> with which to drive the browser
3911
3911
*/
3912
- def on (queryString : String )(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): Unit = {
3912
+ /* infix */ def on (queryString : String )(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): Unit = {
3913
3913
// stack depth is not correct if just call the button("...") directly.
3914
3914
val target = tryQueries(queryString)(q => q.webElement)
3915
3915
on(target)
@@ -3920,7 +3920,7 @@ trait WebBrowser {
3920
3920
*
3921
3921
* @param element the <code>Element</code> to click on
3922
3922
*/
3923
- def on (element : Element ): Unit = {
3923
+ /* infix */ def on (element : Element ): Unit = {
3924
3924
element.underlying.click()
3925
3925
}
3926
3926
}
@@ -4062,7 +4062,7 @@ trait WebBrowser {
4062
4062
* @param driver the <code>WebDriver</code> with which to drive the browser
4063
4063
* @return instance of specified <code>SwitchTarget</code>'s type parameter
4064
4064
*/
4065
- def to [T ](target : SwitchTarget [T ])(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): T = {
4065
+ /* infix */ def to [T ](target : SwitchTarget [T ])(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): T = {
4066
4066
target.switch(driver)(pos)
4067
4067
}
4068
4068
}
@@ -4321,7 +4321,7 @@ trait WebBrowser {
4321
4321
* @param name cookie's name
4322
4322
* @param driver the <code>WebDriver</code> with which to drive the browser
4323
4323
*/
4324
- def cookie (name : String )(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): Unit = {
4324
+ /* infix */ def cookie (name : String )(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): Unit = {
4325
4325
deleteCookie(name)
4326
4326
}
4327
4327
@@ -4330,7 +4330,7 @@ trait WebBrowser {
4330
4330
*
4331
4331
* @param driver the <code>WebDriver</code> with which to drive the browser
4332
4332
*/
4333
- def all (cookies : CookiesNoun )(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): Unit = {
4333
+ /* infix */ def all (cookies : CookiesNoun )(implicit driver : WebDriver , pos : source.Position = implicitly[source.Position ]): Unit = {
4334
4334
driver.manage.deleteAllCookies()
4335
4335
}
4336
4336
}
@@ -4417,7 +4417,7 @@ trait WebBrowser {
4417
4417
*
4418
4418
* @param fileName screenshot file name, if does not end with .png, it will be extended automatically
4419
4419
*/
4420
- def to (fileName : String )(implicit driver : WebDriver ): Unit = {
4420
+ /* infix */ def to (fileName : String )(implicit driver : WebDriver ): Unit = {
4421
4421
driver match {
4422
4422
case takesScreenshot : TakesScreenshot =>
4423
4423
val tmpFile = takesScreenshot.getScreenshotAs(OutputType .FILE )
@@ -4433,7 +4433,7 @@ trait WebBrowser {
4433
4433
*
4434
4434
* @param dirName directory name to save screenshot.
4435
4435
*/
4436
- def toDir (dirName : String )(implicit driver : WebDriver ): Unit = {
4436
+ /* infix */ def toDir (dirName : String )(implicit driver : WebDriver ): Unit = {
4437
4437
driver match {
4438
4438
case takesScreenshot : TakesScreenshot =>
4439
4439
val tmpFile = takesScreenshot.getScreenshotAs(OutputType .FILE )
0 commit comments