Best Selenium code snippet using org.openqa.selenium.remote.RemoteWebDriver.findElements
Source:pureDrivers.java
...418 public static Object findElementWE( org.openqa.selenium.By xPath, pureDriverDetails driverToUse ) {419 return pureCore.callMethod( driverToUse.mainDriver, driverToUse.mainDriver.getClass(), "findElement", org.openqa.selenium.By.class, driverToUse.mainDriver.getClass().toString(), xPath );420 }421 422 // ************************************************************************************************************************ findElements423 // WebDriver [12] = public abstract java.util.List org.openqa.selenium.WebDriver.findElements(org.openqa.selenium.By)424 // ChromeDriver [16] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElements(org.openqa.selenium.By)425 // FireFoxDriver [16] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElements(org.openqa.selenium.By)426 // InternetExplorerDriver [15] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElements(org.openqa.selenium.By)427 // EdgeDriver [13] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElements(org.openqa.selenium.By)428 // OperaDriver [18] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElements(org.openqa.selenium.By)429 // SafariDriver [14] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElements(org.openqa.selenium.By)430 // AndroidDriver [30] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElements(org.openqa.selenium.By)431 public static pureElements findElements( org.openqa.selenium.By xPath ){432 pureDriverDetails currentDriver = getCurrentDriverDetails();433 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElements", org.openqa.selenium.By.class, currentDriver.mainDriver.getClass().toString(), xPath );434 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );435 if ( myObjectList != null ) {436 pureCore.peMethod myMethod = pureCore.peMethodFromBy( xPath.toString() );437 pureElements newPureElements = new pureElements( "-", "-", myMethod.peMethodid, myMethod.peSearch, pureCore.defRefreshMode );438 newPureElements.theElements = myObjectList;439 newPureElements.refrehCode = "0xFFFFFFFF";440 return newPureElements;441 }else {442 return null;443 }444 }445 // ************************************************************************************************************************ Location446 // ChromeDriver [0] = public org.openqa.selenium.html5.Location org.openqa.selenium.chrome.ChromeDriver.location()447 // OperaDriver [0] = public org.openqa.selenium.html5.Location org.openqa.selenium.opera.OperaDriver.location()448 // AndroidDriver [23] = public org.openqa.selenium.html5.Location io.appium.java_client.AppiumDriver.location()449 public org.openqa.selenium.html5.Location location() {450 pureDriverDetails currentDriver = getCurrentDriverDetails();451 return (org.openqa.selenium.html5.Location)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "location", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );452 }453 454 // ************************************************************************************************************************ setFileDetector455 // ChromeDriver [1] = public void org.openqa.selenium.chrome.ChromeDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)456 // FireFoxDriver [1] = public void org.openqa.selenium.firefox.FirefoxDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)457 // InternetExplorerDriver [0] = public void org.openqa.selenium.ie.InternetExplorerDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)458 // EdgeDriver [14] = public void org.openqa.selenium.remote.RemoteWebDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)459 // OperaDriver [2] = public void org.openqa.selenium.opera.OperaDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)460 // SafariDriver [0] = public void org.openqa.selenium.safari.SafariDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)461 // AndroidDriver [57] = public void org.openqa.selenium.remote.RemoteWebDriver.setFileDetector(org.openqa.selenium.remote.FileDetector)462 public void setFileDetector( org.openqa.selenium.remote.FileDetector myFileDetector ) {463 pureDriverDetails currentDriver = getCurrentDriverDetails();464 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "setFileDetector", org.openqa.selenium.remote.FileDetector.class,465 "pureDrivers.setFileDetector", (Object)myFileDetector );466 }467 468 // ************************************************************************************************************************ getLocalStorage469 // ChromeDriver [2] = public org.openqa.selenium.html5.LocalStorage org.openqa.selenium.chrome.ChromeDriver.getLocalStorage()470 // FireFoxDriver [2] = public org.openqa.selenium.html5.LocalStorage org.openqa.selenium.firefox.FirefoxDriver.getLocalStorage()471 // OperaDriver [3] = public org.openqa.selenium.html5.LocalStorage org.openqa.selenium.opera.OperaDriver.getLocalStorage()472 public org.openqa.selenium.html5.LocalStorage getLocalStorage() {473 pureDriverDetails currentDriver = getCurrentDriverDetails();474 return (org.openqa.selenium.html5.LocalStorage)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "location", (Class<?>)null , currentDriver.mainDriver.getClass().toString(), (Object)null );475 }476 // ************************************************************************************************************************ setLocation477 // ChromeDriver [3] = public void org.openqa.selenium.chrome.ChromeDriver.setLocation(org.openqa.selenium.html5.Location)478 // OperaDriver [4] = public void org.openqa.selenium.opera.OperaDriver.setLocation(org.openqa.selenium.html5.Location)479 // AndroidDriver [31] = public void io.appium.java_client.AppiumDriver.setLocation(org.openqa.selenium.html5.Location)480 public void setLocation( org.openqa.selenium.html5.Location myLocation ) {481 pureDriverDetails currentDriver = getCurrentDriverDetails();482 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "setLocation", org.openqa.selenium.html5.Location.class, currentDriver.mainDriver.getClass().toString(), (Object)myLocation );483 }484 485 // ************************************************************************************************************************ getTouch486 // ChromeDriver [4] = public org.openqa.selenium.interactions.TouchScreen org.openqa.selenium.chrome.ChromeDriver.getTouch()487 public org.openqa.selenium.interactions.TouchScreen getTouch() {488 pureDriverDetails currentDriver = getCurrentDriverDetails();489 return (org.openqa.selenium.interactions.TouchScreen)pureCore.callMethod(490 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getTouch", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );491 }492 // ************************************************************************************************************************ launchApp493 // ChromeDriver [5] = public void org.openqa.selenium.chrome.ChromeDriver.launchApp(java.lang.String)494 // AndroidDriver [84] = public default void io.appium.java_client.InteractsWithApps.launchApp()495 public void launchApp( String inPut ) {496 pureDriverDetails currentDriver = getCurrentDriverDetails();497 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "launchApp" , java.lang.String.class, currentDriver.mainDriver.getClass().toString(), inPut );498 }499 500 // ************************************************************************************************************************ getSessionStorage501 // ChromeDriver [6] = public org.openqa.selenium.html5.SessionStorage org.openqa.selenium.chrome.ChromeDriver.getSessionStorage()502 // FireFoxDriver [0] = public org.openqa.selenium.html5.SessionStorage org.openqa.selenium.firefox.FirefoxDriver.getSessionStorage()503 // OperaDriver [1] = public org.openqa.selenium.html5.SessionStorage org.openqa.selenium.opera.OperaDriver.getSessionStorage()504 public org.openqa.selenium.html5.SessionStorage getSessionStorage() {505 pureDriverDetails currentDriver = getCurrentDriverDetails();506 return (org.openqa.selenium.html5.SessionStorage)pureCore.callMethod(507 currentDriver.mainDriver, currentDriver.mainDriver.getClass(),"getSesionStorage", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );508 }509 // ************************************************************************************************************************ getNetworkConnection510 // ChromeDriver [7] = public org.openqa.selenium.mobile.NetworkConnection$ConnectionType org.openqa.selenium.chrome.ChromeDriver.getNetworkConnection()511 public org.openqa.selenium.mobile.NetworkConnection.ConnectionType getNetworkConnection() {512 pureDriverDetails currentDriver = getCurrentDriverDetails();513 return (org.openqa.selenium.mobile.NetworkConnection.ConnectionType)pureCore.callMethod(514 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getNetworkConnection", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null ); 515 }516 517 // ************************************************************************************************************************ setNetworkConnection518 // ChromeDriver [8] = public org.openqa.selenium.mobile.NetworkConnection$ConnectionType org.openqa.selenium.chrome.ChromeDriver.setNetworkConnection(org.openqa.selenium.mobile.NetworkConnection$ConnectionType)519 public org.openqa.selenium.mobile.NetworkConnection.ConnectionType setNetworkConnection( org.openqa.selenium.mobile.NetworkConnection.ConnectionType myConnection ) {520 pureDriverDetails currentDriver = getCurrentDriverDetails();521 return (org.openqa.selenium.mobile.NetworkConnection.ConnectionType)pureCore.callMethod(522 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getNetworkConnection", org.openqa.selenium.mobile.NetworkConnection.ConnectionType.class, currentDriver.mainDriver.getClass().toString(), myConnection ); 523 }524 525 // ************************************************************************************************************************ toStringL526 // ChromeDriver [10] = public java.lang.String org.openqa.selenium.remote.RemoteWebDriver.toString()527 // FireFoxDriver [4] = public java.lang.String org.openqa.selenium.remote.RemoteWebDriver.toString()528 // InternetExplorerDriver [3] = public java.lang.String org.openqa.selenium.remote.RemoteWebDriver.toString()529 // EdgeDriver [1] = public java.lang.String org.openqa.selenium.remote.RemoteWebDriver.toString()530 // OperaDriver [6] = public java.lang.String org.openqa.selenium.remote.RemoteWebDriver.toString()531 // SafariDriver [2] = public java.lang.String org.openqa.selenium.remote.RemoteWebDriver.toString()532 // AndroidDriver [0] = public java.lang.String io.appium.java_client.android.AndroidDriver.toString()533 public String toStringL() {534 pureDriverDetails currentDriver = getCurrentDriverDetails();535 return (String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "toString", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );536 }537 538 // ************************************************************************************************************************ getSessionId539 // ChromeDriver [12] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()540 // FireFoxDriver [17] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()541 // InternetExplorerDriver [16] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()542 // EdgeDriver [15] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()543 // OperaDriver [19] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()544 // SafariDriver [15] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()545 // AndroidDriver [58] = public org.openqa.selenium.remote.SessionId org.openqa.selenium.remote.RemoteWebDriver.getSessionId()546 public org.openqa.selenium.remote.SessionId getSessionId() {547 pureDriverDetails currentDriver = getCurrentDriverDetails();548 return (org.openqa.selenium.remote.SessionId)pureCore.callMethod(549 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getSessionId", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );550 }551 552 // ************************************************************************************************************************ getErrorHandler553 // ChromeDriver [24] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()554 // FireFoxDriver [18] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()555 // InternetExplorerDriver [17] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()556 // EdgeDriver [16] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()557 // OperaDriver [20] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()558 // SafariDriver [16] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()559 // AndroidDriver [59] = public org.openqa.selenium.remote.ErrorHandler org.openqa.selenium.remote.RemoteWebDriver.getErrorHandler()560 public org.openqa.selenium.remote.ErrorHandler getErrorHandler() {561 pureDriverDetails currentDriver = getCurrentDriverDetails();562 return (org.openqa.selenium.remote.ErrorHandler)pureCore.callMethod(563 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getErrorHandler", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );564 }565 // ************************************************************************************************************************ setErrorHandler566 // ChromeDriver [25] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)567 // FireFoxDriver [19] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)568 // InternetExplorerDriver [18] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)569 // EdgeDriver [17] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)570 // OperaDriver [21] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)571 // SafariDriver [17] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)572 // AndroidDriver [60] = public void org.openqa.selenium.remote.RemoteWebDriver.setErrorHandler(org.openqa.selenium.remote.ErrorHandler)573 public void setErrorHandler( org.openqa.selenium.remote.ErrorHandler theError ) {574 pureDriverDetails currentDriver = getCurrentDriverDetails();575 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "setErrorHandler", org.openqa.selenium.remote.ErrorHandler.class, currentDriver.mainDriver.getClass().toString(), theError );576 }577 // ************************************************************************************************************************ getCapabilities578 // ChromeDriver [26] = public org.openqa.selenium.Capabilities org.openqa.selenium.remote.RemoteWebDriver.getCapabilities()579 // FireFoxDriver [20] = public org.openqa.selenium.Capabilities org.openqa.selenium.remote.RemoteWebDriver.getCapabilities()580 // InternetExplorerDriver [19] = public org.openqa.selenium.Capabilities org.openqa.selenium.remote.RemoteWebDriver.getCapabilities()581 // EdgeDriver [18] = public org.openqa.selenium.Capabilities org.openqa.selenium.remote.RemoteWebDriver.getCapabilities()582 // OperaDriver [22] = public org.openqa.selenium.Capabilities org.openqa.selenium.remote.RemoteWebDriver.getCapabilities()583 // SafariDriver [18] = public org.openqa.selenium.Capabilities org.openqa.selenium.remote.RemoteWebDriver.getCapabilities()584 // AndroidDriver [12] = public org.openqa.selenium.Capabilities io.appium.java_client.android.AndroidDriver.getCapabilities()585 public org.openqa.selenium.Capabilities getCapabilities() {586 pureDriverDetails currentDriver = getCurrentDriverDetails();587 return (org.openqa.selenium.Capabilities)pureCore.callMethod(588 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getCapabilities", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );589 }590 591 // ************************************************************************************************************************ getScreenshotAs592 // ChromeDriver [27] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(org.openqa.selenium.OutputType) throws org.openqa.selenium.WebDriverException593 // FireFoxDriver [21] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(org.openqa.selenium.OutputType) throws org.openqa.selenium.WebDriverException594 // InternetExplorerDriver [1] = public java.lang.Object org.openqa.selenium.ie.InternetExplorerDriver.getScreenshotAs(org.openqa.selenium.OutputType)595 // EdgeDriver [19] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(org.openqa.selenium.OutputType) throws org.openqa.selenium.WebDriverException596 // OperaDriver [23] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(org.openqa.selenium.OutputType) throws org.openqa.selenium.WebDriverException597 // SafariDriver [19] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(org.openqa.selenium.OutputType) throws org.openqa.selenium.WebDriverException598 // AndroidDriver [61] = public <X> X org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(org.openqa.selenium.OutputType<X>) throws org.openqa.selenium.WebDriverException599 public Object getScreenshotAs( org.openqa.selenium.OutputType<?> file ) throws WebDriverException{600 pureDriverDetails currentDriver = getCurrentDriverDetails();601 return pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getScreenshotAs", org.openqa.selenium.OutputType.class, currentDriver.mainDriver.getClass().toString(), file );602 }603 // ************************************************************************************************************************ executeScript604 // ChromeDriver [30] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object[])605 // FireFoxDriver [22] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object[])606 // InternetExplorerDriver [20] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object[])607 // EdgeDriver [20] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object[])608 // OperaDriver [24] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object[])609 // SafariDriver [20] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object[])610 // AndroidDriver [62] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeScript(java.lang.String,java.lang.Object...)611 public Object executeScript( String Str1, Object[] myObjectList ){612 pureDriverDetails currentDriver = getCurrentDriverDetails();613 //614 Class<?>[] myClasses = new Class[2];615 myClasses[ 0 ] = java.lang.String.class;616 myClasses[ 1 ] = java.lang.Object[].class;617 //618 Object[] myTrueParam = new Object[2];619 myTrueParam[ 0 ] = (Object)Str1;620 myTrueParam[ 1 ] = myObjectList;621 //622 return pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "executeScript", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );623 }624 625 // ************************************************************************************************************************ setLogLevel626 // ChromeDriver [31] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)627 // FireFoxDriver [23] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)628 // InternetExplorerDriver [21] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)629 // EdgeDriver [21] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)630 // OperaDriver [25] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)631 // SafariDriver [21] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)632 // AndroidDriver [63] = public void org.openqa.selenium.remote.RemoteWebDriver.setLogLevel(java.util.logging.Level)633 public void setLogLevel( java.util.logging.Level logLevel ) {634 pureDriverDetails currentDriver = getCurrentDriverDetails();635 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "setLogLevel", java.util.logging.Level.class , currentDriver.mainDriver.getClass().toString(), logLevel );636 }637 // ************************************************************************************************************************ perform638 // ChromeDriver [32] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection)639 // FireFoxDriver [24] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection)640 // InternetExplorerDriver [22] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection)641 // EdgeDriver [22] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection)642 // OperaDriver [26] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection)643 // SafariDriver [22] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection)644 // AndroidDriver [64] = public void org.openqa.selenium.remote.RemoteWebDriver.perform(java.util.Collection<org.openqa.selenium.interactions.Sequence>)645 public void perform( java.util.Collection<?> mCollection ) {646 pureDriverDetails currentDriver = getCurrentDriverDetails();647 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "perform", java.util.Collection.class , currentDriver.mainDriver.getClass().toString(), mCollection );648 }649 650 // ************************************************************************************************************************ resetInputState651 // ChromeDriver [33] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()652 // FireFoxDriver [25] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()653 // InternetExplorerDriver [23] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()654 // EdgeDriver [23] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()655 // OperaDriver [27] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()656 // SafariDriver [23] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()657 // AndroidDriver [65] = public void org.openqa.selenium.remote.RemoteWebDriver.resetInputState()658 public void resetInputState() {659 pureDriverDetails currentDriver = getCurrentDriverDetails();660 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "perform", (Class<?>)null , currentDriver.mainDriver.getClass().toString(), (Object)null );661 662 }663 // ************************************************************************************************************************ getKeyboard664 // ChromeDriver [34] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()665 // FireFoxDriver [26] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()666 // InternetExplorerDriver [24] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()667 // EdgeDriver [24] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()668 // OperaDriver [28] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()669 // SafariDriver [24] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()670 // AndroidDriver [66] = public org.openqa.selenium.interactions.Keyboard org.openqa.selenium.remote.RemoteWebDriver.getKeyboard()671 public org.openqa.selenium.interactions.Keyboard getKeyboard(){672 pureDriverDetails currentDriver = getCurrentDriverDetails();673 return (org.openqa.selenium.interactions.Keyboard)pureCore.callMethod(674 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getKeyboard", (Class<?>)null , currentDriver.mainDriver.getClass().toString(), (Object)null );675 }676 677 // ************************************************************************************************************************ getMouse678 // ChromeDriver [35] = public org.openqa.selenium.interactions.Mouse org.openqa.selenium.remote.RemoteWebDriver.getMouse()679 // FireFoxDriver [27] = public org.openqa.selenium.interactions.Mouse org.openqa.selenium.remote.RemoteWebDriver.getMouse()680 // InternetExplorerDriver [25] = public org.openqa.selenium.interactions.Mouse org.openqa.selenium.remote.RemoteWebDriver.getMouse()681 // EdgeDriver [25] = public org.openqa.selenium.interactions.Mouse org.openqa.selenium.remote.RemoteWebDriver.getMouse()682 // OperaDriver [29] = public org.openqa.selenium.interactions.Mouse org.openqa.selenium.remote.RemoteWebDriver.getMouse()683 // SafariDriver [25] = public org.openqa.selenium.interactions.Mouse org.openqa.selenium.remote.RemoteWebDriver.getMouse()684 // AndroidDriver [13] = public org.openqa.selenium.interactions.Mouse io.appium.java_client.android.AndroidDriver.getMouse()685 public org.openqa.selenium.interactions.Mouse getMouse(){686 pureDriverDetails currentDriver = getCurrentDriverDetails();687 return (org.openqa.selenium.interactions.Mouse)pureCore.callMethod(688 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getMouse", (Class<?>)null , currentDriver.mainDriver.getClass().toString(), (Object)null );689 }690 691 // ************************************************************************************************************************ getFileDetector692 // ChromeDriver [36] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()693 // FireFoxDriver [28] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()694 // InternetExplorerDriver [26] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()695 // EdgeDriver [26] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()696 // OperaDriver [30] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()697 // SafariDriver [26] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()698 // AndroidDriver [67] = public org.openqa.selenium.remote.FileDetector org.openqa.selenium.remote.RemoteWebDriver.getFileDetector()699 public org.openqa.selenium.remote.FileDetector getFileDetector(){700 pureDriverDetails currentDriver = getCurrentDriverDetails();701 return (org.openqa.selenium.remote.FileDetector)pureCore.callMethod(702 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getFileDetector", (Class<?>)null , currentDriver.mainDriver.getClass().toString(), (Object)null );703 }704 // ************************************************************************************************************************ getCommandExecutor705 // ChromeDriver [37] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()706 // FireFoxDriver [29] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()707 // InternetExplorerDriver [27] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()708 // EdgeDriver [27] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()709 // OperaDriver [31] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()710 // SafariDriver [27] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()711 // AndroidDriver [47] = public org.openqa.selenium.remote.CommandExecutor org.openqa.selenium.remote.RemoteWebDriver.getCommandExecutor()712 public org.openqa.selenium.remote.CommandExecutor getCommandExecutor(){713 pureDriverDetails currentDriver = getCurrentDriverDetails();714 return (org.openqa.selenium.remote.CommandExecutor)pureCore.callMethod(715 currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getCommandExecutor", (Class<?>)null , currentDriver.mainDriver.getClass().toString(), (Object)null );716 }717 // ************************************************************************************************************************ executeAsyncScript718 // ChromeDriver [52] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object[])719 // FireFoxDriver [30] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object[])720 // InternetExplorerDriver [28] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object[])721 // EdgeDriver [28] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object[])722 // OperaDriver [32] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object[])723 // SafariDriver [28] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object[])724 // AndroidDriver [48] = public java.lang.Object org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript(java.lang.String,java.lang.Object...)725 public Object executeAsyncScript( String Str1, Object[] myObjectList ){726 pureDriverDetails currentDriver = getCurrentDriverDetails();727 //728 Class<?>[] myClasses = new Class[2];729 myClasses[ 0 ] = java.lang.String.class;730 myClasses[ 1 ] = java.lang.Object[].class;731 //732 Object[] myTrueParam = new Object[2];733 myTrueParam[ 0 ] = (Object)Str1;734 myTrueParam[ 1 ] = myObjectList;735 //736 return pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "executeScript", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );737 }738 // ************************************************************************************************************************ wait739 // ChromeDriver [53] = public final void java.lang.Object.wait() throws java.lang.InterruptedException740 // FireFoxDriver [47] = public final void java.lang.Object.wait() throws java.lang.InterruptedException741 // InternetExplorerDriver [45] = public final void java.lang.Object.wait() throws java.lang.InterruptedException742 // EdgeDriver [45] = public final void java.lang.Object.wait() throws java.lang.InterruptedException743 // OperaDriver [49] = public final void java.lang.Object.wait() throws java.lang.InterruptedException744 // SafariDriver [45] = public final void java.lang.Object.wait() throws java.lang.InterruptedException745 // AndroidDriver [68] = public final void java.lang.Object.wait() throws java.lang.InterruptedException746 public void waitD(){747 pureDriverDetails currentDriver = getCurrentDriverDetails();748 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "wait", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );749 }750 // ************************************************************************************************************************ waitD751 // ChromeDriver [54] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException752 // FireFoxDriver [48] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException753 // InternetExplorerDriver [46] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException754 // EdgeDriver [46] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException755 // OperaDriver [50] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException756 // SafariDriver [46] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException757 // AndroidDriver [69] = public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException758 public void waitD( long TimeL, int TimeI ){759 pureDriverDetails currentDriver = getCurrentDriverDetails();760 //761 Class<?>[] myClasses = new Class[2];762 myClasses[ 0 ] = long.class;763 myClasses[ 1 ] = int.class;764 //765 Object[] myTrueParam = new Object[2];766 myTrueParam[ 0 ] = (Object)TimeL;767 myTrueParam[ 1 ] = (Object)TimeI;768 //769 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "wait", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );770 }771 772 // ************************************************************************************************************************ waitD773 // ChromeDriver [55] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException774 // FireFoxDriver [49] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException775 // InternetExplorerDriver [47] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException776 // EdgeDriver [47] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException777 // OperaDriver [51] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException778 // SafariDriver [47] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException779 // AndroidDriver [70] = public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException780 public void waitD( long TimeL ){781 pureDriverDetails currentDriver = getCurrentDriverDetails();782 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "wait", long.class, currentDriver.mainDriver.getClass().toString(), (Object)TimeL );783 }784 // ************************************************************************************************************************ equalsL785 // ChromeDriver [56] = public boolean java.lang.Object.equals(java.lang.Object)786 // FireFoxDriver [50] = public boolean java.lang.Object.equals(java.lang.Object)787 // InternetExplorerDriver [48] = public boolean java.lang.Object.equals(java.lang.Object)788 // EdgeDriver [48] = public boolean java.lang.Object.equals(java.lang.Object)789 // OperaDriver [52] = public boolean java.lang.Object.equals(java.lang.Object)790 // SafariDriver [48] = public boolean java.lang.Object.equals(java.lang.Object)791 // AndroidDriver [71] = public boolean java.lang.Object.equals(java.lang.Object)792 public boolean equalsL( Object ObjectToCompare ) {793 pureDriverDetails currentDriver = getCurrentDriverDetails();794 return (boolean)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "equals", Object.class, currentDriver.mainDriver.getClass().toString(), ObjectToCompare );795 }796 797 // ************************************************************************************************************************ hashCodeD798 // ChromeDriver [57] = public native int java.lang.Object.hashCode()799 // FireFoxDriver [51] = public native int java.lang.Object.hashCode()800 // InternetExplorerDriver [49] = public native int java.lang.Object.hashCode()801 // EdgeDriver [49] = public native int java.lang.Object.hashCode()802 // OperaDriver [53] = public native int java.lang.Object.hashCode()803 // SafariDriver [49] = public native int java.lang.Object.hashCode()804 // AndroidDriver [72] = public native int java.lang.Object.hashCode()805 public int hashCodeD(){806 pureDriverDetails currentDriver = getCurrentDriverDetails();807 return (int)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "hashCode", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );808 }809 810 // ************************************************************************************************************************ getClassD811 // ChromeDriver [58] = public final native java.lang.Class java.lang.Object.getClass()812 // FireFoxDriver [52] = public final native java.lang.Class java.lang.Object.getClass()813 // InternetExplorerDriver [50] = public final native java.lang.Class java.lang.Object.getClass()814 // EdgeDriver [50] = public final native java.lang.Class java.lang.Object.getClass()815 // OperaDriver [54] = public final native java.lang.Class java.lang.Object.getClass()816 // SafariDriver [50] = public final native java.lang.Class java.lang.Object.getClass()817 // AndroidDriver [73] = public final native java.lang.Class<?> java.lang.Object.getClass()818 public Class<?> getClassD(){819 pureDriverDetails currentDriver = getCurrentDriverDetails();820 return (Class<?>)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getClass", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );821 }822 823 // ************************************************************************************************************************ notifyD824 // ChromeDriver [59] = public final native void java.lang.Object.notify()825 // FireFoxDriver [53] = public final native void java.lang.Object.notify()826 // InternetExplorerDriver [51] = public final native void java.lang.Object.notify()827 // EdgeDriver [51] = public final native void java.lang.Object.notify()828 // OperaDriver [55] = public final native void java.lang.Object.notify()829 // SafariDriver [51] = public final native void java.lang.Object.notify()830 // AndroidDriver [74] = public final native void java.lang.Object.notify()831 public void notifyD(){832 pureDriverDetails currentDriver = getCurrentDriverDetails();833 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "notify", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );834 }835 // ************************************************************************************************************************ notifyAllD836 // ChromeDriver [60] = public final native void java.lang.Object.notifyAll()837 // FireFoxDriver [54] = public final native void java.lang.Object.notifyAll() public boolean equalsL( Object ObjectToCompare ) {838 // InternetExplorerDriver [52] = public final native void java.lang.Object.notifyAll()839 // EdgeDriver [52] = public final native void java.lang.Object.notifyAll()840 // OperaDriver [56] = public final native void java.lang.Object.notifyAll()841 // SafariDriver [52] = public final native void java.lang.Object.notifyAll()842 // AndroidDriver [75] = public final native void java.lang.Object.notifyAll()843 public void notifyAllD(){844 pureDriverDetails currentDriver = getCurrentDriverDetails();845 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "notifyAll", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );846 }847 // ************************************************************************************************************************ findElementById848 // ChromeDriver [28] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementById(java.lang.String)849 // FireFoxDriver [45] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementById(java.lang.String)850 // InternetExplorerDriver [43] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementById(java.lang.String)851 // EdgeDriver [43] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementById(java.lang.String)852 // OperaDriver [47] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementById(java.lang.String)853 // SafariDriver [43] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementById(java.lang.String)854 // AndroidDriver [14] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementById(java.lang.String)855 public pureElement findElementById( String objectID ) {856 pureDriverDetails currentDriver = getCurrentDriverDetails();857 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementById", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), objectID );858 if ( SourceObject != null ) {859 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.id, objectID, pureCore.defRefreshMode );860 newPureElement.theElement = SourceObject;861 newPureElement.refrehCode = "0xFFFFFFFF";862 return newPureElement;863 }else {864 return null;865 }866 }867 // ************************************************************************************************************************ findElementByLinkText868 // ChromeDriver [38] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(java.lang.String)869 // FireFoxDriver [31] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(java.lang.String)870 // InternetExplorerDriver [29] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(java.lang.String)871 // EdgeDriver [29] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(java.lang.String)872 // OperaDriver [33] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(java.lang.String)873 // SafariDriver [29] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByLinkText(java.lang.String)874 // AndroidDriver [3] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByLinkText(java.lang.String) throws org.openqa.selenium.WebDriverException875 public pureElement findElementByLinkText( String ObjectLinkText ){876 pureDriverDetails currentDriver = getCurrentDriverDetails();877 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByLinkText", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), ObjectLinkText );878 if ( SourceObject != null ) {879 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.linkText, ObjectLinkText, pureCore.defRefreshMode );880 newPureElement.theElement = SourceObject;881 newPureElement.refrehCode = "0xFFFFFFFF";882 return newPureElement;883 }else {884 return null;885 }886 }887 888 // ************************************************************************************************************************ findElementByPartialLinkText889 // ChromeDriver [40] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(java.lang.String)890 // FireFoxDriver [32] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(java.lang.String)891 // InternetExplorerDriver [30] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(java.lang.String)892 // EdgeDriver [30] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(java.lang.String)893 // OperaDriver [34] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(java.lang.String)894 // SafariDriver [30] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByPartialLinkText(java.lang.String)895 // AndroidDriver [4] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByPartialLinkText(java.lang.String) throws org.openqa.selenium.WebDriverException896 public pureElement findElementByPartialLinkText( String ObjectLinkText ){897 pureDriverDetails currentDriver = getCurrentDriverDetails();898 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByPartialLinkText", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), ObjectLinkText );899 if ( SourceObject != null ) {900 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.partialLinkText, ObjectLinkText, pureCore.defRefreshMode );901 newPureElement.theElement = SourceObject;902 newPureElement.refrehCode = "0xFFFFFFFF";903 return newPureElement;904 }else {905 return null;906 }907 }908 // ************************************************************************************************************************ findElementByTagName909 // ChromeDriver [42] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName(java.lang.String)910 // FireFoxDriver [33] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName(java.lang.String)911 // InternetExplorerDriver [31] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName(java.lang.String)912 // EdgeDriver [31] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName(java.lang.String)913 // OperaDriver [35] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName(java.lang.String)914 // SafariDriver [31] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByTagName(java.lang.String)915 // AndroidDriver [5] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByTagName(java.lang.String)916 public pureElement findElementByTagName( String TagName ){917 pureDriverDetails currentDriver = getCurrentDriverDetails();918 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByTagName", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), TagName );919 if ( SourceObject != null ) {920 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.tagNamei, TagName, pureCore.defRefreshMode );921 newPureElement.theElement = SourceObject;922 newPureElement.refrehCode = "0xFFFFFFFF";923 return newPureElement;924 }else {925 return null;926 }927 }928 // ************************************************************************************************************************ findElementByName929 // ChromeDriver [44] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByName(java.lang.String)930 // FireFoxDriver [34] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByName(java.lang.String)931 // InternetExplorerDriver [32] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByName(java.lang.String)932 // EdgeDriver [32] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByName(java.lang.String)933 // OperaDriver [36] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByName(java.lang.String)934 // SafariDriver [32] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByName(java.lang.String)935 // AndroidDriver [6] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByName(java.lang.String)936 public pureElement findElementByName( String Name ){937 pureDriverDetails currentDriver = getCurrentDriverDetails();938 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByName", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Name );939 if ( SourceObject != null ) {940 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.name, Name, pureCore.defRefreshMode );941 newPureElement.theElement = SourceObject;942 newPureElement.refrehCode = "0xFFFFFFFF";943 return newPureElement;944 }else {945 return null;946 }947 }948 // ************************************************************************************************************************ findElementByClassName949 // ChromeDriver [46] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(java.lang.String)950 // FireFoxDriver [35] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(java.lang.String)951 // InternetExplorerDriver [33] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(java.lang.String)952 // EdgeDriver [33] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(java.lang.String)953 // OperaDriver [37] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(java.lang.String)954 // SafariDriver [33] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(java.lang.String)955 // AndroidDriver [7] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByClassName(java.lang.String)956 public pureElement findElementByClassName( String ClassName ){957 pureDriverDetails currentDriver = getCurrentDriverDetails();958 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByClassName", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), ClassName );959 if ( SourceObject != null ) {960 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.className, ClassName, pureCore.defRefreshMode );961 newPureElement.theElement = SourceObject;962 newPureElement.refrehCode = "0xFFFFFFFF";963 return newPureElement;964 }else {965 return null;966 }967 }968 // ************************************************************************************************************************ findElementByCssSelector969 // ChromeDriver [48] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(java.lang.String)970 // FireFoxDriver [36] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(java.lang.String)971 // InternetExplorerDriver [34] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(java.lang.String)972 // EdgeDriver [34] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(java.lang.String)973 // OperaDriver [38] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(java.lang.String)974 // SafariDriver [34] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector(java.lang.String)975 // AndroidDriver [8] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByCssSelector(java.lang.String) throws org.openqa.selenium.WebDriverException976 public pureElement findElementByCssSelector( String ObjectLinkText ){977 pureDriverDetails currentDriver = getCurrentDriverDetails();978 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByLinkText", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), ObjectLinkText );979 if ( SourceObject != null ) {980 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.linkText, ObjectLinkText, pureCore.defRefreshMode );981 newPureElement.theElement = SourceObject;982 newPureElement.refrehCode = "0xFFFFFFFF";983 return newPureElement;984 }else {985 return null;986 }987 }988 // ************************************************************************************************************************ findElementByXPath989 // ChromeDriver [50] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(java.lang.String)990 // FireFoxDriver [37] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(java.lang.String)991 // InternetExplorerDriver [35] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(java.lang.String)992 // EdgeDriver [35] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(java.lang.String)993 // OperaDriver [39] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(java.lang.String)994 // SafariDriver [35] = public org.openqa.selenium.WebElement org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(java.lang.String)995 // AndroidDriver [9] = public org.openqa.selenium.WebElement io.appium.java_client.android.AndroidDriver.findElementByXPath(java.lang.String)996 public pureElement findElementByXPath( String xPath ){997 pureDriverDetails currentDriver = getCurrentDriverDetails();998 Object SourceObject = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByXPath", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), xPath );999 if ( SourceObject != null ) {1000 pureElement newPureElement = new pureElement( "-", "-", pureCore.elementMethod.xpath, xPath, pureCore.defRefreshMode );1001 newPureElement.theElement = SourceObject;1002 newPureElement.refrehCode = "0xFFFFFFFF";1003 return newPureElement;1004 }else {1005 return null;1006 }1007 }1008 // ************************************************************************************************************************ findElementsById1009 // ChromeDriver [29] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsById(java.lang.String)1010 // FireFoxDriver [46] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsById(java.lang.String)1011 // InternetExplorerDriver [44] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsById(java.lang.String)1012 // EdgeDriver [44] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsById(java.lang.String)1013 // OperaDriver [48] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsById(java.lang.String)1014 // SafariDriver [44] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsById(java.lang.String)1015 // AndroidDriver [32] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsById(java.lang.String)1016 public pureElements findElementsById( String Search ){1017 pureDriverDetails currentDriver = getCurrentDriverDetails();1018 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsById", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1019 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1020 if ( myObjectList != null ) {1021 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.id, Search, pureCore.defRefreshMode );1022 newPureElements.theElements = myObjectList;1023 newPureElements.refrehCode = "0xFFFFFFFF";1024 return newPureElements;1025 }else {1026 return null;1027 }1028 }1029 1030 // ************************************************************************************************************************ findElementsByLinkText1031 // ChromeDriver [39] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByLinkText(java.lang.String)1032 // FireFoxDriver [38] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByLinkText(java.lang.String)1033 // InternetExplorerDriver [36] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByLinkText(java.lang.String)1034 // EdgeDriver [36] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByLinkText(java.lang.String)1035 // OperaDriver [40] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByLinkText(java.lang.String)1036 // SafariDriver [36] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByLinkText(java.lang.String)1037 // AndroidDriver [26] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByLinkText(java.lang.String)1038 public pureElements findElementsByLinkText( String Search ){1039 pureDriverDetails currentDriver = getCurrentDriverDetails();1040 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByLinkText", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1041 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1042 if ( myObjectList != null ) {1043 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.linkText, Search, pureCore.defRefreshMode );1044 newPureElements.theElements = myObjectList;1045 newPureElements.refrehCode = "0xFFFFFFFF";1046 return newPureElements;1047 }else {1048 return null;1049 }1050 }1051 // ************************************************************************************************************************ findelementsByPartialLinkText1052 // ChromeDriver [41] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByPartialLinkText(java.lang.String)1053 // FireFoxDriver [39] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByPartialLinkText(java.lang.String)1054 // InternetExplorerDriver [37] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByPartialLinkText(java.lang.String)1055 // EdgeDriver [37] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByPartialLinkText(java.lang.String)1056 // OperaDriver [41] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByPartialLinkText(java.lang.String)1057 // SafariDriver [37] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByPartialLinkText(java.lang.String)1058 // AndroidDriver [27] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByPartialLinkText(java.lang.String)1059 public pureElements findElementsByPartialLinkText( String Search ){1060 pureDriverDetails currentDriver = getCurrentDriverDetails();1061 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByPartialLinkText", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1062 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1063 if ( myObjectList != null ) {1064 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.partialLinkText, Search, pureCore.defRefreshMode );1065 newPureElements.theElements = myObjectList;1066 newPureElements.refrehCode = "0xFFFFFFFF";1067 return newPureElements;1068 }else {1069 return null;1070 }1071 }1072 // ************************************************************************************************************************ findElementsByTagName1073 // ChromeDriver [43] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByTagName(java.lang.String)1074 // FireFoxDriver [40] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByTagName(java.lang.String)1075 // InternetExplorerDriver [38] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByTagName(java.lang.String)1076 // EdgeDriver [38] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByTagName(java.lang.String)1077 // OperaDriver [42] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByTagName(java.lang.String)1078 // SafariDriver [38] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByTagName(java.lang.String)1079 // AndroidDriver [28] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByTagName(java.lang.String)1080 public pureElements findElementsByTagName( String Search ){1081 pureDriverDetails currentDriver = getCurrentDriverDetails();1082 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByTagName", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1083 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1084 if ( myObjectList != null ) {1085 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.tagNamei, Search, pureCore.defRefreshMode );1086 newPureElements.theElements = myObjectList;1087 newPureElements.refrehCode = "0xFFFFFFFF";1088 return newPureElements;1089 }else {1090 return null;1091 }1092 }1093 // ************************************************************************************************************************ findElementsByName1094 // ChromeDriver [45] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(java.lang.String)1095 // FireFoxDriver [41] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(java.lang.String)1096 // InternetExplorerDriver [39] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(java.lang.String)1097 // EdgeDriver [39] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(java.lang.String)1098 // OperaDriver [43] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(java.lang.String)1099 // SafariDriver [39] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByName(java.lang.String)1100 // AndroidDriver [33] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByName(java.lang.String)1101 public pureElements findElementsByName( String Search ){1102 pureDriverDetails currentDriver = getCurrentDriverDetails();1103 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByName", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1104 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1105 if ( myObjectList != null ) {1106 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.name, Search, pureCore.defRefreshMode );1107 newPureElements.theElements = myObjectList;1108 newPureElements.refrehCode = "0xFFFFFFFF";1109 return newPureElements;1110 }else {1111 return null;1112 }1113 }1114 // ************************************************************************************************************************ findElementsByClassName 1115 // ChromeDriver [47] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByClassName(java.lang.String)1116 // FireFoxDriver [42] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByClassName(java.lang.String)1117 // InternetExplorerDriver [40] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByClassName(java.lang.String)1118 // EdgeDriver [40] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByClassName(java.lang.String)1119 // OperaDriver [44] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByClassName(java.lang.String)1120 // SafariDriver [40] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByClassName(java.lang.String)1121 // AndroidDriver [34] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByClassName(java.lang.String)1122 public pureElements findElementsByClassName( String Search ){1123 pureDriverDetails currentDriver = getCurrentDriverDetails();1124 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByClassName", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1125 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1126 if ( myObjectList != null ) {1127 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.className, Search, pureCore.defRefreshMode );1128 newPureElements.theElements = myObjectList;1129 newPureElements.refrehCode = "0xFFFFFFFF";1130 return newPureElements;1131 }else {1132 return null;1133 }1134 }1135 // ************************************************************************************************************************ findElementsByCssSelector1136 // ChromeDriver [49] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(java.lang.String)1137 // FireFoxDriver [43] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(java.lang.String)1138 // InternetExplorerDriver [41] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(java.lang.String)1139 // EdgeDriver [41] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(java.lang.String)1140 // OperaDriver [45] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(java.lang.String)1141 // SafariDriver [41] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByCssSelector(java.lang.String)1142 // AndroidDriver [35] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByCssSelector(java.lang.String)1143 public pureElements findElementsByCssSelector( String Search ){1144 pureDriverDetails currentDriver = getCurrentDriverDetails();1145 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByCssSelector", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1146 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1147 if ( myObjectList != null ) {1148 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.cssSelector, Search, pureCore.defRefreshMode );1149 newPureElements.theElements = myObjectList;1150 newPureElements.refrehCode = "0xFFFFFFFF";1151 return newPureElements;1152 }else {1153 return null;1154 }1155 }1156 // ************************************************************************************************************************ findElementsByXPath 1157 // ChromeDriver [51] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(java.lang.String)1158 // FireFoxDriver [44] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(java.lang.String)1159 // InternetExplorerDriver [42] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(java.lang.String)1160 // EdgeDriver [42] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(java.lang.String)1161 // OperaDriver [46] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(java.lang.String)1162 // SafariDriver [42] = public java.util.List org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(java.lang.String)1163 // AndroidDriver [36] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByXPath(java.lang.String)1164 public pureElements findElementsByXPath( String Search ){1165 pureDriverDetails currentDriver = getCurrentDriverDetails();1166 Object feedback = pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByXPath", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Search );1167 List<Object> myObjectList = pureCore.CastObjecttoList( feedback );1168 if ( myObjectList != null ) {1169 pureElements newPureElements = new pureElements( "-", "-", pureCore.elementMethod.xpath, Search, pureCore.defRefreshMode );1170 newPureElements.theElements = myObjectList;1171 newPureElements.refrehCode = "0xFFFFFFFF";1172 return newPureElements;1173 }else {1174 return null;1175 }1176 }1177 1178 1179 // ********************************************************************************************************************************************************1180 // AndroidDriver [1] = public org.openqa.selenium.remote.Response io.appium.java_client.android.AndroidDriver.execute(java.lang.String)1181 public org.openqa.selenium.remote.Response execute( String executeStr ) {1182 pureDriverDetails currentDriver = getCurrentDriverDetails();1183 org.openqa.selenium.remote.Response feedback = (org.openqa.selenium.remote.Response)pureCore.callMethod( currentDriver.mainDriver,1184 currentDriver.mainDriver.getClass(), "execute", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), executeStr );1185 return feedback;1186 }1187 // ********************************************************************************************************************************************************1188 // AndroidDriver [2] = public org.openqa.selenium.remote.Response io.appium.java_client.android.AndroidDriver.execute(java.lang.String,java.util.Map)1189 @SuppressWarnings("rawtypes")1190 public org.openqa.selenium.remote.Response execute( String Str1, java.util.Map Map1 ){1191 pureDriverDetails currentDriver = getCurrentDriverDetails();1192 //1193 Class<?>[] myClasses = new Class[2];1194 myClasses[ 0 ] = java.lang.String.class;1195 myClasses[ 1 ] = java.util.Map.class;1196 //1197 Object[] myTrueParam = new Object[2];1198 myTrueParam[ 0 ] = (Object)Str1;1199 myTrueParam[ 1 ] = (Object)Map1;1200 //1201 org.openqa.selenium.remote.Response feedback = (org.openqa.selenium.remote.Response)pureCore.callMethod( currentDriver.mainDriver,1202 currentDriver.mainDriver.getClass(), "execute", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1203 return feedback;1204 }1205 // ********************************************************************************************************************************************************1206 // AndroidDriver [15] = public void io.appium.java_client.android.AndroidDriver.endTestCoverage(java.lang.String,java.lang.String)1207 public void endTestCoverage( String Str1, String Str2 ){1208 pureDriverDetails currentDriver = getCurrentDriverDetails();1209 //1210 Class<?>[] myClasses = new Class[2];1211 myClasses[ 0 ] = java.lang.String.class;1212 myClasses[ 1 ] = java.lang.String.class;1213 //1214 Object[] myTrueParam = new Object[2];1215 myTrueParam[ 0 ] = (Object)Str1;1216 myTrueParam[ 1 ] = (Object)Str2;1217 //1218 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "endTestCoverage", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1219 }1220 // ********************************************************************************************************************************************************1221 // AndroidDriver [16] = public io.appium.java_client.battery.BatteryInfo io.appium.java_client.android.AndroidDriver.getBatteryInfo()1222 public io.appium.java_client.battery.BatteryInfo getBatteryInfo(){1223 pureDriverDetails currentDriver = getCurrentDriverDetails();1224 return (io.appium.java_client.battery.BatteryInfo)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getBatteryInfo", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1225 }1226 // ********************************************************************************************************************************************************1227 // AndroidDriver [17] = public io.appium.java_client.android.AndroidBatteryInfo io.appium.java_client.android.AndroidDriver.getBatteryInfo()1228 public io.appium.java_client.android.AndroidBatteryInfo getBatteryInfoA(){1229 pureDriverDetails currentDriver = getCurrentDriverDetails();1230 return (io.appium.java_client.android.AndroidBatteryInfo)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getBatteryInfo", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1231 }1232 // ********************************************************************************************************************************************************1233 // AndroidDriver [18] = public synchronized io.appium.java_client.ws.StringWebSocketClient io.appium.java_client.android.AndroidDriver.getLogcatClient()1234 public synchronized io.appium.java_client.ws.StringWebSocketClient getLogcatClient(){1235 pureDriverDetails currentDriver = getCurrentDriverDetails();1236 return (io.appium.java_client.ws.StringWebSocketClient)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getLogcatClient", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1237 }1238 // ********************************************************************************************************************************************************1239 // AndroidDriver [19] = public void io.appium.java_client.android.AndroidDriver.openNotifications()1240 public void openNotifications(){1241 pureDriverDetails currentDriver = getCurrentDriverDetails();1242 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "openNotifications", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1243 }1244 // ********************************************************************************************************************************************************1245 // AndroidDriver [20] = public void io.appium.java_client.android.AndroidDriver.toggleLocationServices()1246 public void toggleLocationServices(){1247 pureDriverDetails currentDriver = getCurrentDriverDetails();1248 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "toggleLocationServices", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1249 }1250 // ********************************************************************************************************************************************************1251 // AndroidDriver [21] = public org.openqa.selenium.WebDriver io.appium.java_client.AppiumDriver.context(java.lang.String)1252 public org.openqa.selenium.WebDriver context( String contextStr ) {1253 pureDriverDetails currentDriver = getCurrentDriverDetails();1254 org.openqa.selenium.WebDriver feedback = (org.openqa.selenium.WebDriver)pureCore.callMethod( currentDriver.mainDriver,1255 currentDriver.mainDriver.getClass(), "context", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), contextStr );1256 return feedback;1257 }1258 // ********************************************************************************************************************************************************1259 // AndroidDriver [22] = public java.lang.String io.appium.java_client.AppiumDriver.getContext()1260 public String getContext(){1261 pureDriverDetails currentDriver = getCurrentDriverDetails();1262 return (String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getContext", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1263 }1264 // ********************************************************************************************************************************************************1265 // AndroidDriver [24] = public void io.appium.java_client.AppiumDriver.rotate(org.openqa.selenium.ScreenOrientation)1266 public void rotate( org.openqa.selenium.ScreenOrientation Orientation ) {1267 pureDriverDetails currentDriver = getCurrentDriverDetails();1268 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "rotate", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), Orientation );1269 }1270 // ********************************************************************************************************************************************************1271 // AndroidDriver [25] = public void io.appium.java_client.AppiumDriver.rotate(org.openqa.selenium.DeviceRotation)1272 public void rotate( org.openqa.selenium.DeviceRotation deviceRotation ) {1273 pureDriverDetails currentDriver = getCurrentDriverDetails();1274 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "rotate", java.lang.String.class, currentDriver.mainDriver.getClass().toString(), deviceRotation );1275 }1276 // ********************************************************************************************************************************************************1277 // AndroidDriver [29] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElements(java.lang.String,java.lang.String)1278 public void findElements( String Str1, String Str2 ){1279 pureDriverDetails currentDriver = getCurrentDriverDetails();1280 Class<?>[] myClasses = new Class[2];1281 myClasses[ 0 ] = java.lang.String.class;1282 myClasses[ 1 ] = java.lang.String.class;1283 Object[] myTrueParam = new Object[2];1284 myTrueParam[ 0 ] = (Object)Str1;1285 myTrueParam[ 1 ] = (Object)Str2;1286 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElements", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1287 }1288 // ********************************************************************************************************************************************************1289 // AndroidDriver [37] = public org.openqa.selenium.remote.ExecuteMethod io.appium.java_client.AppiumDriver.getExecuteMethod()1290 public org.openqa.selenium.remote.ExecuteMethod getExecuteMethod(){1291 pureDriverDetails currentDriver = getCurrentDriverDetails();1292 return (org.openqa.selenium.remote.ExecuteMethod)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1293 "getExecuteMethod", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1294 }1295 // ********************************************************************************************************************************************************1296 // AndroidDriver [38] = public org.openqa.selenium.DeviceRotation io.appium.java_client.AppiumDriver.rotation()1297 public org.openqa.selenium.DeviceRotation rotation(){1298 pureDriverDetails currentDriver = getCurrentDriverDetails();1299 return (org.openqa.selenium.DeviceRotation)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1300 "rotation", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1301 }1302 // ********************************************************************************************************************************************************1303 // AndroidDriver [39] = public org.openqa.selenium.ScreenOrientation io.appium.java_client.AppiumDriver.getOrientation()1304 public org.openqa.selenium.ScreenOrientation getOrientation(){1305 pureDriverDetails currentDriver = getCurrentDriverDetails();1306 return (org.openqa.selenium.ScreenOrientation)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1307 "getOrientation", (Class<?>)null, currentDriver.mainDriver.getClass().toString(), (Object)null );1308 }1309 // ********************************************************************************************************************************************************1310 // AndroidDriver [40] = public java.net.URL io.appium.java_client.AppiumDriver.getRemoteAddress()1311 public java.net.URL getRemoteAddress(){1312 pureDriverDetails currentDriver = getCurrentDriverDetails();1313 return (java.net.URL)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getRemoteAddress", (Class<?>)null,1314 currentDriver.mainDriver.getClass().toString(), (Object)null );1315 }1316 // ********************************************************************************************************************************************************1317 // AndroidDriver [41] = public boolean io.appium.java_client.AppiumDriver.isBrowser()1318 public boolean isBrowser(){1319 pureDriverDetails currentDriver = getCurrentDriverDetails();1320 return (boolean)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "isBrowser", (Class<?>)null,1321 currentDriver.mainDriver.getClass().toString(), (Object)null );1322 }1323 // ********************************************************************************************************************************************************1324 // AndroidDriver [42] = public java.util.List<T> io.appium.java_client.AppiumDriver.findElementsByAccessibilityId(java.lang.String)1325 // AndroidDriver [25] = public void io.appium.java_client.AppiumDriver.rotate(org.openqa.selenium.DeviceRotation)1326 @SuppressWarnings("rawtypes")1327 public java.util.List findElementsByAccessibilityId( java.lang.String AccessibilityID ) {1328 pureDriverDetails currentDriver = getCurrentDriverDetails();1329 return (java.util.List)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementsByAccessibilityId",1330 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), AccessibilityID );1331 }1332 1333 // ********************************************************************************************************************************************************1334 // AndroidDriver [43] = public java.util.Set<java.lang.String> io.appium.java_client.AppiumDriver.getContextHandles()1335 public String getContextHandles(){1336 pureDriverDetails currentDriver = getCurrentDriverDetails();1337 return (String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getContextHandles", (Class<?>)null,1338 currentDriver.mainDriver.getClass().toString(), (Object)null );1339 }1340 // ********************************************************************************************************************************************************1341 // AndroidDriver [76] = public default io.appium.java_client.TouchAction io.appium.java_client.PerformsTouchActions.performTouchAction(io.appium.java_client.TouchAction)1342 @SuppressWarnings("rawtypes")1343 public io.appium.java_client.TouchAction performTouchAction( io.appium.java_client.TouchAction touchAction ) {1344 pureDriverDetails currentDriver = getCurrentDriverDetails();1345 return (io.appium.java_client.TouchAction)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "performTouchAction",1346 io.appium.java_client.TouchAction.class, currentDriver.mainDriver.getClass().toString(), touchAction );1347 }1348 // ********************************************************************************************************************************************************1349 // AndroidDriver [77] = public default void io.appium.java_client.PerformsTouchActions.performMultiTouchAction(io.appium.java_client.MultiTouchAction)1350 public void performMultiTouchAction( io.appium.java_client.MultiTouchAction multitouchAction ) {1351 pureDriverDetails currentDriver = getCurrentDriverDetails();1352 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "performMultiTouchAction", io.appium.java_client.MultiTouchAction.class,1353 currentDriver.mainDriver.getClass().toString(), multitouchAction );1354 }1355 // ********************************************************************************************************************************************************1356 // AndroidDriver [78] = public default T io.appium.java_client.FindsByAccessibilityId.findElementByAccessibilityId(java.lang.String)1357 @SuppressWarnings("unchecked")1358 public <T> T findElementByAccessibilityId( java.lang.String accessibilityID ) {1359 pureDriverDetails currentDriver = getCurrentDriverDetails();1360 return (T)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "findElementByAccessibilityId", java.lang.String.class,1361 currentDriver.mainDriver.getClass().toString(), accessibilityID );1362 }1363 // ********************************************************************************************************************************************************1364 // AndroidDriver [79] = public default void io.appium.java_client.HidesKeyboard.hideKeyboard()1365 public void hideKeyboard() {1366 pureDriverDetails currentDriver = getCurrentDriverDetails();1367 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "hideKeyboard", (Class<?>)null,1368 currentDriver.mainDriver.getClass().toString(), (Object)null );1369 }1370 1371 // ********************************************************************************************************************************************************1372 // AndroidDriver [80] = public default java.lang.String io.appium.java_client.HasDeviceTime.getDeviceTime(java.lang.String)1373 public java.lang.String getDeviceTime( java.lang.String format ) {1374 pureDriverDetails currentDriver = getCurrentDriverDetails();1375 return (java.lang.String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getDeviceTime",1376 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), format );1377 }1378 1379 // ********************************************************************************************************************************************************1380 // AndroidDriver [81] = public default java.lang.String io.appium.java_client.HasDeviceTime.getDeviceTime()1381 public java.lang.String getDeviceTime() {1382 pureDriverDetails currentDriver = getCurrentDriverDetails();1383 return (java.lang.String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getDeviceTime", (Class<?>)null,1384 currentDriver.mainDriver.getClass().toString(), (Object)null );1385 }1386 1387 // ********************************************************************************************************************************************************1388 // AndroidDriver [82] = public default byte[] io.appium.java_client.InteractsWithFiles.pullFile(java.lang.String)1389 public byte[] pullFile( java.lang.String remotePath ) {1390 pureDriverDetails currentDriver = getCurrentDriverDetails();1391 return (byte[])pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "pullFile",1392 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), remotePath );1393 }1394 // ********************************************************************************************************************************************************1395 // AndroidDriver [83] = public default byte[] io.appium.java_client.InteractsWithFiles.pullFolder(java.lang.String)1396 public byte[] pullFolder( java.lang.String remotePath ) {1397 pureDriverDetails currentDriver = getCurrentDriverDetails();1398 return (byte[])pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "pullFolder",1399 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), remotePath );1400 }1401 1402 // ********************************************************************************************************************************************************1403 // AndroidDriver [85] = public default void io.appium.java_client.InteractsWithApps.installApp(java.lang.String,io.appium.java_client.appmanagement.BaseInstallApplicationOptions)1404 1405 // ********************************************************************************************************************************************************1406 // AndroidDriver [86] = public default void io.appium.java_client.InteractsWithApps.installApp(java.lang.String)1407 public void installApp( java.lang.String appPath ) {1408 pureDriverDetails currentDriver = getCurrentDriverDetails();1409 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "installApp",1410 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), appPath );1411 }1412 1413 // ********************************************************************************************************************************************************1414 // AndroidDriver [87] = public default boolean io.appium.java_client.InteractsWithApps.isAppInstalled(java.lang.String)1415 public boolean isAppInstalled( java.lang.String bundleId ) {1416 pureDriverDetails currentDriver = getCurrentDriverDetails();1417 return (boolean)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "isAppInstalled",1418 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), bundleId );1419 }1420 1421 // ********************************************************************************************************************************************************1422 // AndroidDriver [88] = public default void io.appium.java_client.InteractsWithApps.resetApp()1423 public void resetApp() {1424 pureDriverDetails currentDriver = getCurrentDriverDetails();1425 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "resetApp", (Class<?>)null,1426 currentDriver.mainDriver.getClass().toString(), (Object)null );1427 }1428 1429 // ********************************************************************************************************************************************************1430 // AndroidDriver [89] = public default boolean io.appium.java_client.InteractsWithApps.removeApp(java.lang.String,io.appium.java_client.appmanagement.BaseRemoveApplicationOptions)1431 1432 // ********************************************************************************************************************************************************1433 // AndroidDriver [90] = public default boolean io.appium.java_client.InteractsWithApps.removeApp(java.lang.String)1434 public boolean removeApp( java.lang.String bundleId ) {1435 pureDriverDetails currentDriver = getCurrentDriverDetails();1436 return (boolean)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "removeApp",1437 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), bundleId );1438 }1439 1440 // ********************************************************************************************************************************************************1441 // AndroidDriver [91] = public default void io.appium.java_client.InteractsWithApps.closeApp()1442 public void closeApp() {1443 pureDriverDetails currentDriver = getCurrentDriverDetails();1444 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "closeApp", (Class<?>)null,1445 currentDriver.mainDriver.getClass().toString(), (Object)null );1446 }1447 1448 // ********************************************************************************************************************************************************1449 // AndroidDriver [92] = public default void io.appium.java_client.InteractsWithApps.activateApp(java.lang.String)1450 public void activateApp( java.lang.String bundleId ) {1451 pureDriverDetails currentDriver = getCurrentDriverDetails();1452 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "activateApp",1453 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), bundleId );1454 }1455 1456 // ********************************************************************************************************************************************************1457 // AndroidDriver [93] = public default void io.appium.java_client.InteractsWithApps.activateApp(java.lang.String,io.appium.java_client.appmanagement.BaseActivateApplicationOptions)1458 1459 // ********************************************************************************************************************************************************1460 // AndroidDriver [94] = public default io.appium.java_client.appmanagement.ApplicationState io.appium.java_client.InteractsWithApps.queryAppState(java.lang.String)1461 public io.appium.java_client.appmanagement.ApplicationState queryAppState( java.lang.String bundleId ) {1462 pureDriverDetails currentDriver = getCurrentDriverDetails();1463 return (io.appium.java_client.appmanagement.ApplicationState)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "queryAppState",1464 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), bundleId );1465 }1466 1467 // ********************************************************************************************************************************************************1468 // AndroidDriver [95] = public default boolean io.appium.java_client.InteractsWithApps.terminateApp(java.lang.String)1469 public boolean terminateApp( java.lang.String bundleId ) {1470 pureDriverDetails currentDriver = getCurrentDriverDetails();1471 return (boolean)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "terminateApp",1472 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), bundleId );1473 }1474 1475 // ********************************************************************************************************************************************************1476 // AndroidDriver [96] = public default boolean io.appium.java_client.InteractsWithApps.terminateApp(java.lang.String,io.appium.java_client.appmanagement.BaseTerminateApplicationOptions)1477 1478 // ********************************************************************************************************************************************************1479 // AndroidDriver [97] = public default void io.appium.java_client.InteractsWithApps.runAppInBackground(java.time.Duration)1480 public void runAppInBackground( java.time.Duration duration ) {1481 pureDriverDetails currentDriver = getCurrentDriverDetails();1482 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "runAppInBackground",1483 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), duration );1484 }1485 1486 // ********************************************************************************************************************************************************1487 // AndroidDriver [98] = public default java.util.Map<java.lang.String, java.lang.String> io.appium.java_client.HasAppStrings.getAppStringMap()1488 1489 // ********************************************************************************************************************************************************1490 // AndroidDriver [99] = public default java.util.Map<java.lang.String, java.lang.String> io.appium.java_client.HasAppStrings.getAppStringMap(java.lang.String)1491 @SuppressWarnings("unchecked")1492 public java.util.Map<java.lang.String, java.lang.String> getAppStringMap( java.lang.String language ) {1493 pureDriverDetails currentDriver = getCurrentDriverDetails();1494 return (java.util.Map<java.lang.String, java.lang.String>)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getAppStringMap",1495 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), language );1496 }1497 1498 // ********************************************************************************************************************************************************1499 // AndroidDriver [100] = public default java.util.Map<java.lang.String, java.lang.String> io.appium.java_client.HasAppStrings.getAppStringMap(java.lang.String,java.lang.String)1500 1501 // ********************************************************************************************************************************************************1502 // AndroidDriver [101] = public default java.lang.Object io.appium.java_client.HasSessionDetails.getSessionDetail(java.lang.String)1503 public java.lang.Object getSessionDetail( java.lang.String detail ) {1504 pureDriverDetails currentDriver = getCurrentDriverDetails();1505 return pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getSessionDetail",1506 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), detail );1507 }1508 1509 // ********************************************************************************************************************************************************1510 // AndroidDriver [102] = public default java.lang.String io.appium.java_client.HasSessionDetails.getPlatformName()1511 public void getPlatformName() {1512 pureDriverDetails currentDriver = getCurrentDriverDetails();1513 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getPlatformName", (Class<?>)null,1514 currentDriver.mainDriver.getClass().toString(), (Object)null );1515 }1516 1517 // ********************************************************************************************************************************************************1518 // AndroidDriver [103] = public default java.util.Map<java.lang.String, java.lang.Object> io.appium.java_client.HasSessionDetails.getSessionDetails()1519 @SuppressWarnings("unchecked")1520 public java.util.Map<java.lang.String, java.lang.Object> getSessionDetails() {1521 pureDriverDetails currentDriver = getCurrentDriverDetails();1522 return (java.util.Map<java.lang.String, java.lang.Object>)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getSessionDetails", (Class<?>)null,1523 currentDriver.mainDriver.getClass().toString(), (Object)null );1524 }1525 1526 // ********************************************************************************************************************************************************1527 // AndroidDriver [104] = public default java.lang.String io.appium.java_client.HasSessionDetails.getAutomationName()1528 public java.lang.String getAutomationName() {1529 pureDriverDetails currentDriver = getCurrentDriverDetails();1530 return (java.lang.String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getAutomationName", (Class<?>)null,1531 currentDriver.mainDriver.getClass().toString(), (Object)null );1532 }1533 1534 // ********************************************************************************************************************************************************1535 // AndroidDriver [105] = public default io.appium.java_client.imagecomparison.FeaturesMatchingResult io.appium.java_client.ComparesImages.matchImagesFeatures(java.io.File, java.io.File, io.appium.java_client.imagecomparison.FeaturesMatchingOptions ) throws java.io.IOException1536 public io.appium.java_client.imagecomparison.FeaturesMatchingResult matchImagesFeatures( java.io.File image1, java.io.File image2, io.appium.java_client.imagecomparison.FeaturesMatchingOptions fileOptions ) throws java.io.IOException {1537 pureDriverDetails currentDriver = getCurrentDriverDetails();1538 Class<?>[] myClasses = new Class[3];1539 myClasses[ 0 ] = java.io.File.class;1540 myClasses[ 1 ] = java.io.File.class;1541 myClasses[ 2 ] = io.appium.java_client.imagecomparison.FeaturesMatchingOptions.class;1542 Object[] myTrueParam = new Object[3];1543 myTrueParam[ 0 ] = (Object)image1;1544 myTrueParam[ 1 ] = (Object)image2;1545 myTrueParam[ 2 ] = (Object)fileOptions;1546 return (io.appium.java_client.imagecomparison.FeaturesMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1547 "matchImagesFeatures", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1548 }1549 // ********************************************************************************************************************************************************1550 // AndroidDriver [106] = public default io.appium.java_client.imagecomparison.FeaturesMatchingResult io.appium.java_client.ComparesImages.matchImagesFeatures(java.io.File, java.io.File) throws java.io.IOException1551 public io.appium.java_client.imagecomparison.FeaturesMatchingResult matchImagesFeatures( java.io.File image1, java.io.File image2 ) throws java.io.IOException {1552 pureDriverDetails currentDriver = getCurrentDriverDetails();1553 Class<?>[] myClasses = new Class[2];1554 myClasses[ 0 ] = java.io.File.class;1555 myClasses[ 1 ] = java.io.File.class;1556 Object[] myTrueParam = new Object[2];1557 myTrueParam[ 0 ] = (Object)image1;1558 myTrueParam[ 1 ] = (Object)image2;1559 return (io.appium.java_client.imagecomparison.FeaturesMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1560 "matchImagesFeatures", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1561 }1562 1563 // ********************************************************************************************************************************************************1564 // AndroidDriver [107] = public default io.appium.java_client.imagecomparison.FeaturesMatchingResult io.appium.java_client.ComparesImages.matchImagesFeatures(byte[], byte[], io.appium.java_client.imagecomparison.FeaturesMatchingOptions )1565 public io.appium.java_client.imagecomparison.FeaturesMatchingResult matchImagesFeatures( byte[] base64image1, byte[] base64image2, io.appium.java_client.imagecomparison.FeaturesMatchingOptions fileOptions ){1566 pureDriverDetails currentDriver = getCurrentDriverDetails();1567 Class<?>[] myClasses = new Class[3];1568 myClasses[ 0 ] = byte[].class;1569 myClasses[ 1 ] = byte[].class;1570 myClasses[ 2 ] = io.appium.java_client.imagecomparison.FeaturesMatchingOptions.class;1571 Object[] myTrueParam = new Object[3];1572 myTrueParam[ 0 ] = (Object)base64image1;1573 myTrueParam[ 1 ] = (Object)base64image2;1574 myTrueParam[ 2 ] = (Object)fileOptions;1575 return (io.appium.java_client.imagecomparison.FeaturesMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1576 "matchImagesFeatures", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1577 }1578 1579 // ********************************************************************************************************************************************************1580 // AndroidDriver [108] = public default io.appium.java_client.imagecomparison.FeaturesMatchingResult io.appium.java_client.ComparesImages.matchImagesFeatures(byte[] ,byte[] )1581 public io.appium.java_client.imagecomparison.FeaturesMatchingResult matchImagesFeatures( byte[] base64image1, byte[] base64image2 ) {1582 pureDriverDetails currentDriver = getCurrentDriverDetails();1583 Class<?>[] myClasses = new Class[2];1584 myClasses[ 0 ] = byte[].class;1585 myClasses[ 1 ] = byte[].class;1586 Object[] myTrueParam = new Object[2];1587 myTrueParam[ 0 ] = (Object)base64image1;1588 myTrueParam[ 1 ] = (Object)base64image2;1589 return (io.appium.java_client.imagecomparison.FeaturesMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1590 "matchImagesFeatures", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1591 }1592 1593 // ********************************************************************************************************************************************************1594 // AndroidDriver [109] = public default io.appium.java_client.imagecomparison.OccurrenceMatchingResult io.appium.java_client.ComparesImages.findImageOccurrence(java.io.File ,java.io.File ) throws java.io.IOException1595 public io.appium.java_client.imagecomparison.OccurrenceMatchingResult findImageOccurrence( java.io.File image1, java.io.File image2 ) throws java.io.IOException {1596 pureDriverDetails currentDriver = getCurrentDriverDetails();1597 Class<?>[] myClasses = new Class[2];1598 myClasses[ 0 ] = java.io.File.class;1599 myClasses[ 1 ] = java.io.File.class;1600 Object[] myTrueParam = new Object[2];1601 myTrueParam[ 0 ] = (Object)image1;1602 myTrueParam[ 1 ] = (Object)image2;1603 return (io.appium.java_client.imagecomparison.OccurrenceMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1604 "findImageOccurrence", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1605 }1606 1607 // ********************************************************************************************************************************************************1608 // AndroidDriver [110] = public default io.appium.java_client.imagecomparison.OccurrenceMatchingResult io.appium.java_client.ComparesImages.findImageOccurrence(java.io.File, java.io.File, io.appium.java_client.imagecomparison.OccurrenceMatchingOptions ) throws java.io.IOException1609 public io.appium.java_client.imagecomparison.OccurrenceMatchingResult findImageOccurrence( java.io.File image1, java.io.File image2, io.appium.java_client.imagecomparison.OccurrenceMatchingOptions fileOptions ) throws java.io.IOException {1610 pureDriverDetails currentDriver = getCurrentDriverDetails();1611 Class<?>[] myClasses = new Class[2];1612 myClasses[ 0 ] = java.io.File.class;1613 myClasses[ 1 ] = java.io.File.class;1614 myClasses[ 2 ] = io.appium.java_client.imagecomparison.OccurrenceMatchingOptions.class;1615 Object[] myTrueParam = new Object[2];1616 myTrueParam[ 0 ] = (Object)image1;1617 myTrueParam[ 1 ] = (Object)image2;1618 myTrueParam[ 2 ] = (Object)fileOptions;1619 return (io.appium.java_client.imagecomparison.OccurrenceMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1620 "findImageOccurrence", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1621 }1622 1623 // ********************************************************************************************************************************************************1624 // AndroidDriver [111] = public default io.appium.java_client.imagecomparison.OccurrenceMatchingResult io.appium.java_client.ComparesImages.findImageOccurrence(byte[] ,byte[], io.appium.java_client.imagecomparison.OccurrenceMatchingOptions )1625 public io.appium.java_client.imagecomparison.OccurrenceMatchingResult findImageOccurrence( byte[] base64image1, byte[] base64image2, io.appium.java_client.imagecomparison.OccurrenceMatchingOptions fileOptions ){1626 pureDriverDetails currentDriver = getCurrentDriverDetails();1627 Class<?>[] myClasses = new Class[3];1628 myClasses[ 0 ] = byte[].class;1629 myClasses[ 1 ] = byte[].class;1630 myClasses[ 2 ] = io.appium.java_client.imagecomparison.OccurrenceMatchingOptions.class;1631 Object[] myTrueParam = new Object[3];1632 myTrueParam[ 0 ] = (Object)base64image1;1633 myTrueParam[ 1 ] = (Object)base64image2;1634 myTrueParam[ 2 ] = (Object)fileOptions;1635 return (io.appium.java_client.imagecomparison.OccurrenceMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1636 "findImageOccurrence", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1637 }1638 1639 // ********************************************************************************************************************************************************1640 // AndroidDriver [112] = public default io.appium.java_client.imagecomparison.OccurrenceMatchingResult io.appium.java_client.ComparesImages.findImageOccurrence(byte[], byte[] )1641 public io.appium.java_client.imagecomparison.OccurrenceMatchingResult findImageOccurrence( byte[] base64image1, byte[] base64image2 ){1642 pureDriverDetails currentDriver = getCurrentDriverDetails();1643 Class<?>[] myClasses = new Class[2];1644 myClasses[ 0 ] = byte[].class;1645 myClasses[ 1 ] = byte[].class;1646 Object[] myTrueParam = new Object[2];1647 myTrueParam[ 0 ] = (Object)base64image1;1648 myTrueParam[ 1 ] = (Object)base64image2;1649 return (io.appium.java_client.imagecomparison.OccurrenceMatchingResult)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(),1650 "findImageOccurrence", myClasses, currentDriver.mainDriver.getClass().toString(), myTrueParam );1651 }1652 1653 // ********************************************************************************************************************************************************1654 // AndroidDriver [113] = public default io.appium.java_client.imagecomparison.SimilarityMatchingResult io.appium.java_client.ComparesImages.getImagesSimilarity(java.io.File, java.io.File ) throws java.io.IOException1655 1656 // ********************************************************************************************************************************************************1657 // AndroidDriver [114] = public default io.appium.java_client.imagecomparison.SimilarityMatchingResult io.appium.java_client.ComparesImages.getImagesSimilarity(java.io.File, java.io.File, io.appium.java_client.imagecomparison.SimilarityMatchingOptions ) throws java.io.IOException1658 1659 // ********************************************************************************************************************************************************1660 // AndroidDriver [115] = public default io.appium.java_client.imagecomparison.SimilarityMatchingResult io.appium.java_client.ComparesImages.getImagesSimilarity(byte[], byte[], io.appium.java_client.imagecomparison.SimilarityMatchingOptions )1661 1662 // ********************************************************************************************************************************************************1663 // AndroidDriver [116] = public default io.appium.java_client.imagecomparison.SimilarityMatchingResult io.appium.java_client.ComparesImages.getImagesSimilarity(byte[], byte[] )1664 1665 // ********************************************************************************************************************************************************1666 // AndroidDriver [117] = public default void io.appium.java_client.android.nativekey.PressesKey.pressKeyCode(int)1667 public void pressKeyCode( int key ) {1668 pureDriverDetails currentDriver = getCurrentDriverDetails();1669 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "pressKeyCode",1670 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), key );1671 }1672 // ********************************************************************************************************************************************************1673 // AndroidDriver [118] = public default void io.appium.java_client.android.nativekey.PressesKey.pressKeyCode(int,java.lang.Integer)1674 1675 // ********************************************************************************************************************************************************1676 // AndroidDriver [119] = public default void io.appium.java_client.android.nativekey.PressesKey.pressKey(io.appium.java_client.android.nativekey.KeyEvent)1677 public void pressKey( io.appium.java_client.android.nativekey.KeyEvent keyEvent ) {1678 pureDriverDetails currentDriver = getCurrentDriverDetails();1679 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "pressKey",1680 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), keyEvent );1681 }1682 1683 // ********************************************************************************************************************************************************1684 // AndroidDriver [120] = public default void io.appium.java_client.android.nativekey.PressesKey.longPressKeyCode(int,java.lang.Integer)1685 1686 // ********************************************************************************************************************************************************1687 // AndroidDriver [121] = public default void io.appium.java_client.android.nativekey.PressesKey.longPressKeyCode(int)1688 public void longPressKeyCode( int key ) {1689 pureDriverDetails currentDriver = getCurrentDriverDetails();1690 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "longPressKeyCode",1691 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), key );1692 }1693 1694 // ********************************************************************************************************************************************************1695 // AndroidDriver [122] = public default void io.appium.java_client.android.nativekey.PressesKey.longPressKey(io.appium.java_client.android.nativekey.KeyEvent)1696 public void longPressKey( io.appium.java_client.android.nativekey.KeyEvent keyEvent ) {1697 pureDriverDetails currentDriver = getCurrentDriverDetails();1698 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "longPressKey",1699 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), keyEvent );1700 }1701 1702 // ********************************************************************************************************************************************************1703 // AndroidDriver [123] = public default io.appium.java_client.android.connection.ConnectionState io.appium.java_client.android.connection.HasNetworkConnection.setConnection(io.appium.java_client.android.connection.ConnectionState )1704 public io.appium.java_client.android.connection.ConnectionState setConnection( io.appium.java_client.android.connection.ConnectionState connectionState ) {1705 pureDriverDetails currentDriver = getCurrentDriverDetails();1706 return (io.appium.java_client.android.connection.ConnectionState)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "setConnection",1707 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), connectionState );1708 }1709 1710 // ********************************************************************************************************************************************************1711 // AndroidDriver [124] = public default io.appium.java_client.android.connection.ConnectionState io.appium.java_client.android.connection.HasNetworkConnection.getConnection()1712 1713 // ********************************************************************************************************************************************************1714 // AndroidDriver [125] = public default void io.appium.java_client.android.PushesFiles.pushFile(java.lang.String, byte[] )1715 1716 // ********************************************************************************************************************************************************1717 // AndroidDriver [126] = public default void io.appium.java_client.android.PushesFiles.pushFile(java.lang.String, java.io.File ) throws java.io.IOException1718 1719 // ********************************************************************************************************************************************************1720 // AndroidDriver [127] = public default void io.appium.java_client.android.StartsActivity.startActivity(io.appium.java_client.android.Activity )1721 public void startActivity( io.appium.java_client.android.Activity activity ) {1722 pureDriverDetails currentDriver = getCurrentDriverDetails();1723 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "startActivity",1724 java.lang.String.class, currentDriver.mainDriver.getClass().toString(), activity );1725 }1726 1727 // ********************************************************************************************************************************************************1728 // AndroidDriver [128] = public default java.lang.String io.appium.java_client.android.StartsActivity.currentActivity()1729 public java.lang.String currentActivity() {1730 pureDriverDetails currentDriver = getCurrentDriverDetails();1731 return (java.lang.String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "currentActivity", (Class<?>)null,1732 currentDriver.mainDriver.getClass().toString(), (Object)null );1733 }1734 1735 // ********************************************************************************************************************************************************1736 // AndroidDriver [129] = public default java.lang.String io.appium.java_client.android.StartsActivity.getCurrentPackage()1737 public java.lang.String getCurrentPackage() {1738 pureDriverDetails currentDriver = getCurrentDriverDetails();1739 return (java.lang.String)pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "getCurrentPackage", (Class<?>)null,1740 currentDriver.mainDriver.getClass().toString(), (Object)null );1741 }1742 1743 // ********************************************************************************************************************************************************1744 // AndroidDriver [130] = public default T io.appium.java_client.FindsByAndroidUIAutomator.findElementByAndroidUIAutomator(java.lang.String)1745 1746 // ********************************************************************************************************************************************************1747 // AndroidDriver [131] = public default java.util.List<T> io.appium.java_client.FindsByAndroidUIAutomator.findElementsByAndroidUIAutomator(java.lang.String)1748 1749 // ********************************************************************************************************************************************************1750 // AndroidDriver [132] = public default void io.appium.java_client.LocksDevice.lockDevice()1751 public void lockDevice() {1752 pureDriverDetails currentDriver = getCurrentDriverDetails();1753 pureCore.callMethod( currentDriver.mainDriver, currentDriver.mainDriver.getClass(), "lockDevice", (Class<?>)null,1754 currentDriver.mainDriver.getClass().toString(), (Object)null );1755 }1756 1757 // ********************************************************************************************************************************************************1758 // AndroidDriver [133] = public default void io.appium.java_client.LocksDevice.lockDevice(java.time.Duration)1759 1760 // ********************************************************************************************************************************************************1761 // AndroidDriver [134] = public default void io.appium.java_client.LocksDevice.unlockDevice()...
Source:NLPerfectoWebDriver.java
...156 }157 /**158 * @param by159 * @return160 * @see org.openqa.selenium.remote.RemoteWebDriver#findElements(org.openqa.selenium.By)161 */162 @Override163 public List<WebElement> findElements(By by) {164 return webDriver.findElements(by);165 }166 /**167 * @param by168 * @return169 * @see org.openqa.selenium.remote.RemoteWebDriver#findElement(org.openqa.selenium.By)170 */171 @Override172 public WebElement findElement(By by) {173 return webDriver.findElement(by);174 }175 /**176 * @param using177 * @return178 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementById(java.lang.String)179 */180 @Override181 public WebElement findElementById(String using) {182 return webDriver.findElement(By.id(using));183 }184 /**185 * @param using186 * @return187 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsById(java.lang.String)188 */189 @Override190 public List<WebElement> findElementsById(String using) {191 return webDriver.findElements(By.id(using));192 }193 /**194 * @param using195 * @return196 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByLinkText(java.lang.String)197 */198 @Override199 public WebElement findElementByLinkText(String using) {200 return webDriver.findElement(By.linkText(using));201 }202 /**203 * @param using204 * @return205 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByLinkText(java.lang.String)206 */207 @Override208 public List<WebElement> findElementsByLinkText(String using) {209 return webDriver.findElements(By.linkText(using));210 }211 /**212 * @param using213 * @return214 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByPartialLinkText(java.lang.String)215 */216 @Override217 public WebElement findElementByPartialLinkText(String using) {218 return webDriver.findElement(By.partialLinkText(using));219 }220 /**221 * @param using222 * @return223 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByPartialLinkText(java.lang.String)224 */225 @Override226 public List<WebElement> findElementsByPartialLinkText(String using) {227 return webDriver.findElements(By.partialLinkText(using));228 }229 /**230 * @param using231 * @return232 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByTagName(java.lang.String)233 */234 @Override235 public WebElement findElementByTagName(String using) {236 return webDriver.findElement(By.tagName(using));237 }238 /**239 * @param using240 * @return241 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByTagName(java.lang.String)242 */243 @Override244 public List<WebElement> findElementsByTagName(String using) {245 return webDriver.findElements(By.tagName(using));246 }247 /**248 * @param using249 * @return250 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByName(java.lang.String)251 */252 @Override253 public WebElement findElementByName(String using) {254 return webDriver.findElement(By.name(using));255 }256 /**257 * @param using258 * @return259 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByName(java.lang.String)260 */261 @Override262 public List<WebElement> findElementsByName(String using) {263 return webDriver.findElements(By.name(using));264 }265 /**266 * @param using267 * @return268 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByClassName(java.lang.String)269 */270 @Override271 public WebElement findElementByClassName(String using) {272 return webDriver.findElement(By.className(using));273 }274 /**275 * @param using276 * @return277 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByClassName(java.lang.String)278 */279 @Override280 public List<WebElement> findElementsByClassName(String using) {281 return webDriver.findElements(By.className(using));282 }283 /**284 * @param using285 * @return286 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByCssSelector(java.lang.String)287 */288 @Override289 public WebElement findElementByCssSelector(String using) {290 return webDriver.findElement(By.cssSelector(using));291 }292 /**293 * @param using294 * @return295 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByCssSelector(java.lang.String)296 */297 @Override298 public List<WebElement> findElementsByCssSelector(String using) {299 return webDriver.findElements(By.cssSelector(using));300 }301 /**302 * @param using303 * @return304 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementByXPath(java.lang.String)305 */306 @Override307 public WebElement findElementByXPath(String using) {308 return webDriver.findElement(By.xpath(using));309 }310 /**311 * @param using312 * @return313 * @see org.openqa.selenium.remote.RemoteWebDriver#findElementsByXPath(java.lang.String)314 */315 @Override316 public List<WebElement> findElementsByXPath(String using) {317 return webDriver.findElements(By.xpath(using));318 }319 /**320 * @return321 * @see org.openqa.selenium.remote.RemoteWebDriver#getPageSource()322 */323 @Override324 public String getPageSource() {325 return webDriver.getPageSource();326 }327 /**328 * 329 * @see org.openqa.selenium.remote.RemoteWebDriver#close()330 */331 @Override...
Source:ProxyWebDriver.java
...112 // TODO Auto-generated method stub113 return driver.print(printOptions);114 }115 @Override116 public List<WebElement> findElements(SearchContext context, BiFunction<String, Object, CommandPayload> findCommand,117 By locator) {118 // TODO Auto-generated method stub119 return driver.findElements(context, findCommand, locator);120 }121 122 123 @Override124 public void setLogLevel(Level level) {125 // TODO Auto-generated method stub126 driver.setLogLevel(level);127 }128 129 @Override130 public void perform(Collection<Sequence> actions) {131 // TODO Auto-generated method stub132 driver.perform(actions);133 }134 @Override135 public void resetInputState() {136 // TODO Auto-generated method stub137 driver.resetInputState();138 }139 @Override140 public Keyboard getKeyboard() {141 // TODO Auto-generated method stub142 return driver.getKeyboard();143 }144 @Override145 public Mouse getMouse() {146 // TODO Auto-generated method stub147 return driver.getMouse();148 }149 @Override150 public VirtualAuthenticator addVirtualAuthenticator(VirtualAuthenticatorOptions options) {151 // TODO Auto-generated method stub152 return driver.addVirtualAuthenticator(options);153 }154 @Override155 public void removeVirtualAuthenticator(VirtualAuthenticator authenticator) {156 // TODO Auto-generated method stub157 driver.removeVirtualAuthenticator(authenticator);158 }159 160 @Override161 public FileDetector getFileDetector() {162 // TODO Auto-generated method stub163 return driver.getFileDetector();164 }165 @Override166 public void setFileDetector(FileDetector detector) {167 // TODO Auto-generated method stub168 driver.setFileDetector(detector);169 }170 @Override171 public String toString() {172 // TODO Auto-generated method stub173 return driver.toString();174 }175 176 177 @Override178 public void get(String url) {179 // TODO Auto-generated method stub180 driver.get(url);181 }182 @Override183 public String getCurrentUrl() {184 // TODO Auto-generated method stub185 return driver.getCurrentUrl();186 }187 @Override188 public String getTitle() {189 // TODO Auto-generated method stub190 return driver.getTitle();191 }192 @Override193 public List<WebElement> findElements(By by) {194 // TODO Auto-generated method stub195 return driver.findElements(by);196 }197 @Override198 public WebElement findElement(By by) {199 // TODO Auto-generated method stub200 new WebDriverWait(driver, Duration.ofSeconds(30))201 .until(driver -> driver.findElement(by));202 return driver.findElement(by);203 }204 @Override205 public String getPageSource() {206 // TODO Auto-generated method stub207 return driver.getPageSource();208 }209 @Override...
Source:WebDriverAdditionalTestDocsAdapter.java
...27 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementByName");28 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementByPartialLinkText");29 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementByTagName");30 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementByXPath");31 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByClassName");32 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByCssSelector");33 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsById");34 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByLinkText");35 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByName");36 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByPartialLinkText");37 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByTagName");38 methodAdd("org.openqa.selenium.remote.RemoteWebDriver", "findElementsByXPath");39 methodAdd("org.openqa.selenium.Rotatable", "getOrientation");40 methodAdd("org.openqa.selenium.Rotatable", "rotate");41 methodAdd("org.openqa.selenium.support.ui.Select", "Select");42 methodAdd("org.openqa.selenium.support.ui.Select", "selectByIndex");43 methodAdd("org.openqa.selenium.support.ui.Select", "selectByValue");44 methodAdd("org.openqa.selenium.support.ui.Select", "selectByVisibleText");45 methodAdd("org.openqa.selenium.WebDriver", "close");46 methodAdd("org.openqa.selenium.WebDriver", "findElement");47 methodAdd("org.openqa.selenium.WebDriver", "findElements");48 methodAdd("org.openqa.selenium.WebDriver", "get");49 methodAdd("org.openqa.selenium.WebDriver", "getCurrentUrl");50 methodAdd("org.openqa.selenium.WebDriver", "getTitle");51 methodAdd("org.openqa.selenium.WebDriver", "quit");52 methodAdd("org.openqa.selenium.WebDriver$Navigation", "back");53 methodAdd("org.openqa.selenium.WebDriver$Navigation", "forward");54 methodAdd("org.openqa.selenium.WebDriver$Navigation", "refresh");55 methodAdd("org.openqa.selenium.WebDriver$Navigation", "to");56 methodAdd("org.openqa.selenium.WebElement", "clear");57 methodAdd("org.openqa.selenium.WebElement", "click");58 methodAdd("org.openqa.selenium.WebElement", "getAttribute");59 methodAdd("org.openqa.selenium.WebElement", "getText");60 methodAdd("org.openqa.selenium.WebElement", "isDisplayed");61 methodAdd("org.openqa.selenium.WebElement", "isEnabled");...
Source:IosNativeDriver.java
...79 }80 @SuppressWarnings({"unchecked", "rawtypes"})81 public List<IosNativeElement> findIosNativeElements(82 org.openqa.selenium.By by) {83 return (List) findElements(by);84 }85 @Override86 public WebElement findElementByPlaceholder(String using) {87 return findElement(USING_PLACEHOLDER, using);88 }89 @Override90 public List<WebElement> findElementsByPlaceholder(String using) {91 return findElements(USING_PLACEHOLDER, using);92 }93 @Override94 public WebElement findElementByText(String using) {95 return findElement(USING_TEXT, using);96 }97 @Override98 public List<WebElement> findElementsByText(String using) {99 return findElements(USING_TEXT, using);100 }101 @Override102 public WebElement findElementByPartialText(String using) {103 return findElement(USING_PARTIALTEXT, using);104 }105 @Override106 public List<WebElement> findElementsByPartialText(String using) {107 return findElements(USING_PARTIALTEXT, using);108 }109}...
Source:FirstTest.java
...40 }41 @Test42 public void testFirstCalculator() {43 // Click on DELETE/CLR button to cleaadb der result text box before running test.44 driver.findElements(By.xpath("//*[@text='Cancel']")).get(0).click();45 driver.findElements(By.xpath("//*[@text='SDL']")).get(0).click();46 driver.findElements(By.id("com.ford.cchmi:id/sdl_fr_network_base_url_input")).get(0).clear();47 driver.findElements(By.id("com.ford.cc10hmi:id/sdl_fr_network_user_id_input")).get(0).clear();48 driver.findElements(By.id("com.ford.cchmi:id/sdl_fr_network_base_url_input")).get(0).sendKeys("http://10.0.2.2:3002/");49 driver.findElements(By.id("com.ford.cchmi:id/sdl_fr_network_user_id_input")).get(0).sendKeys("1337");50 driver.findElements(By.id("com.ford.cchmi:id/sdl_fr_save_network_settings")).get(0).click();51 driver.findElements(By.xpath("//*[@text='Time']")).get(0).click();52 driver.findElements(By.id("com.ford.cchmi:id/upload_statistic_fab")).get(0).click();53 driver.manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);54 //logEntries = driver.manage().logs().get("logcat").getAll();55 // Click on number 2 button.56 //driver.findElement(By.name("7")).click();57 //driver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);58 }59 // @After60 //public void End() {61 // driver.quit();62 //}63}...
Source:WebDriverSeleniumServer.java
...45 46 searchField.sendKeys("ibm");47 searchField.submit();48 49 WebElement imagesLink = driver.findElements(By.linkText("Images")).get(0);50 imagesLink.click();51 52 WebElement imageElement = driver.findElements(By.cssSelector("img[cls = rg_I]")).get(0);53 54 WebElement imageLink = imageElement.findElements(By.tagName("img")).get(0);55 imageLink.click();56 }57}...
Source:WebDriverDemo.java
...20 WebElement searchField=driver.findElement(By.name("q"));21 searchField.sendKeys("pluralsight");22 searchField.submit();23 24 List<WebElement> imageLink=driver.findElements(By.linkText("Images"));25 imageLink.get(0).click();26 27// WebElement imageElement= driver.findElements(By.cssSelector("[wXeWr islib nfEiy mM5pbd]")).get(0);28// WebElement imagelink2=imageElement.findElements(By.tagName("img")).get(0);29// imagelink2.click();30 31 driver.close();32 33 34 }35}...
findElements
Using AI Code Generation
1import java.net.MalformedURLException;2import java.net.URL;3import java.util.List;4import org.openqa.selenium.By;5import org.openqa.selenium.WebDriver;6import org.openqa.selenium.WebElement;7import org.openqa.selenium.remote.DesiredCapabilities;8import org.openqa.selenium.remote.RemoteWebDriver;9public class FindElements {10 public static void main(String[] args) throws MalformedURLException, InterruptedException {11 DesiredCapabilities capabilities = DesiredCapabilities.chrome();12 List<WebElement> links = driver.findElements(By.tagName("a"));13 System.out.println("Total links on the page are: " + links.size());14 for (WebElement link : links) {15 System.out.println(link.getText());16 }17 driver.quit();18 }19}20List<WebElement> buttons = driver.findElements(By.cssSelector(".btn"));21List<WebElement> buttons = driver.findElements(By.name("btn"));22List<WebElement> buttons = driver.findElements(By.linkText("btn"));
findElements
Using AI Code Generation
1package com.edureka.java_j2ee.module6;2import java.net.MalformedURLException;3import java.net.URL;4import java.util.List;5import org.openqa.selenium.By;6import org.openqa.selenium.WebElement;7import org.openqa.selenium.remote.DesiredCapabilities;8import org.openqa.selenium.remote.RemoteWebDriver;9public class FindElementsExample {10 public static void main(String[] args) throws MalformedURLException {11 DesiredCapabilities capability = DesiredCapabilities.chrome();12 List<WebElement> searchBox = driver.findElements(By.name("q"));13 System.out.println("Number of search boxes on the page are: "+searchBox.size());14 driver.quit();15 }16}
findElements
Using AI Code Generation
1package com.zetcode;2import java.util.List;3import org.openqa.selenium.By;4import org.openqa.selenium.WebDriver;5import org.openqa.selenium.WebElement;6import org.openqa.selenium.chrome.ChromeDriver;7public class FindElementsEx {8 public static void main(String[] args) {9 System.setProperty("webdriver.chrome.driver", "/home/janbodnar/Downloads/chromedriver_linux64/chromedriver");10 WebDriver driver = new ChromeDriver();11 List<WebElement> elements = driver.findElements(By.tagName("a"));12 for (WebElement element : elements) {13 System.out.println(element.getText());14 }15 driver.quit();16 }17}
findElements
Using AI Code Generation
1import org.openqa.selenium.By;2import org.openqa.selenium.WebDriver;3import org.openqa.selenium.WebElement;4import org.openqa.selenium.chrome.ChromeDriver;5import java.util.List;6public class FindElements {7public static void main(String[] args) {8WebDriver driver = new ChromeDriver();9driver.get(baseURL);10List<WebElement> element = driver.findElements(By.className("rt-block"));11System.out.println("Number of elements:" +element.size());12driver.quit();13}14}15import org.openqa.selenium.By;16import org.openqa.selenium.WebDriver;17import org.openqa.selenium.WebElement;18import org.openqa.selenium.chrome.ChromeDriver;19public class FindElements {20public static void main(String[] args) {21WebDriver driver = new ChromeDriver();22driver.get(baseURL);23WebElement element = driver.findElement(By.className("rt-block"));24System.out.println("Number of elements:" +element.getText());25driver.quit();26}27}28import org.openqa.selenium.By;29import org.openqa.selenium.WebDriver;30import org.openqa.selenium.WebElement;31import org.openqa.selenium.chrome.ChromeDriver;32public class FindElements {33public static void main(String[] args) {34WebDriver driver = new ChromeDriver();35driver.get(baseURL);36List<WebElement> element = driver.findElements(By.className("rt-block"));37System.out.println("Number of elements:" +element.get(0).getText());38driver.quit();39}40}41import org.openqa.selenium.By;42import org.openqa.selenium.WebDriver;43import org.openqa.selenium.WebElement;44import org.openqa.selenium.chrome.ChromeDriver;45public class FindElements {46public static void main(String[] args) {47WebDriver driver = new ChromeDriver();
findElements
Using AI Code Generation
1import org.openqa.selenium.By;2import org.openqa.selenium.WebElement;3import org.openqa.selenium.remote.RemoteWebDriver;4import java.net.URL;5import java.util.List;6import java.util.concurrent.TimeUnit;7import org.openqa.selenium.remote.DesiredCapabilities;8import org.openqa.selenium.remote.RemoteWebElement;9import org.openqa.selenium.remote.RemoteWebDriver;10public class Selenium_WebDriver_FindElements {11 public static void main(String[] args) throws Exception {12 System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");13 driver.manage().window().maximize();14 driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);15 System.out.println("Total number of links: " + list.size());16 for (int i = 0; i < list.size(); i++) {17 System.out.println(list.get(i).getText());18 }19 driver.quit();20 }21}
findElements
Using AI Code Generation
1package com.automation;2import org.openqa.selenium.By;3import org.openqa.selenium.WebDriver;4import org.openqa.selenium.WebElement;5import org.openqa.selenium.chrome.ChromeDriver;6import java.util.List;7public class FindElementsExample {8 public static void main(String[] args) {9 System.setProperty("webdriver.chrome.driver", "C:\\Users\\saurabh.joshi\\Desktop\\chromedriver.exe");10 WebDriver driver = new ChromeDriver();11 List<WebElement> elements = driver.findElements(By.name("name"));12 System.out.println("Number of elements:" + elements.size());13 driver.quit();14 }15}16package com.automation;17import org.openqa.selenium.By;18import org.openqa.selenium.WebDriver;19import org.openqa.selenium.WebElement;20import org.openqa.selenium.chrome.ChromeDriver;21import java.util.List;22public class FindElementsExample {23 public static void main(String[] args) {24 System.setProperty("webdriver.chrome.driver", "C:\\Users\\saurabh.joshi\\Desktop\\chromedriver.exe");25 WebDriver driver = new ChromeDriver();26 List<WebElement> elements = driver.findElements(By.name("name"));27 System.out.println("Number of elements:" + elements.size());28 driver.quit();29 }30}31package com.automation;32import org.openqa.selenium.By;33import org.openqa.selenium.WebDriver;34import org.openqa.selenium.WebElement;35import org.openqa.selenium.chrome.ChromeDriver;36import java.util.List;37public class FindElementsExample {38 public static void main(String[] args) {39 System.setProperty("webdriver.chrome.driver", "C:\\Users\\saurabh.joshi\\Desktop\\chromedriver.exe");40 WebDriver driver = new ChromeDriver();41 List<WebElement> elements = driver.findElements(By.name("name"));42 System.out.println("Number of elements
findElements
Using AI Code Generation
1import java.util.List;2import org.openqa.selenium.By;3import org.openqa.selenium.WebDriver;4import org.openqa.selenium.WebElement;5import org.openqa.selenium.chrome.ChromeDriver;6public class FindElements {7 public static void main(String[] args) {8 System.setProperty("webdriver.chrome.driver", "C:\\Users\\User\\Documents\\chromedriver.exe");9 WebDriver driver = new ChromeDriver();10 List<WebElement> elements = driver.findElements(By.tagName("a"));11 int size = elements.size();12 for (int i = 0; i < size; ++i) {13 System.out.println(elements.get(i).getText());14 }15 driver.quit();16 }17}18[Back to Table of Contents](
LambdaTest’s Selenium 4 tutorial is covering every aspects of Selenium 4 testing with examples and best practices. Here you will learn basics, such as how to upgrade from Selenium 3 to Selenium 4, to some advanced concepts, such as Relative locators and Selenium Grid 4 for Distributed testing. Also will learn new features of Selenium 4, such as capturing screenshots of specific elements, opening a new tab or window on the browser, and new protocol adoptions.
Upgrading From Selenium 3 To Selenium 4?: In this chapter, learn in detail how to update Selenium 3 to Selenium 4 for Java binding. Also, learn how to upgrade while using different build tools such as Maven or Gradle and get comprehensive guidance for upgrading Selenium.
What’s New In Selenium 4 & What’s Being Deprecated? : Get all information about new implementations in Selenium 4, such as W3S protocol adaption, Optimized Selenium Grid, and Enhanced Selenium IDE. Also, learn what is deprecated for Selenium 4, such as DesiredCapabilites and FindsBy methods, etc.
Selenium 4 With Python: Selenium supports all major languages, such as Python, C#, Ruby, and JavaScript. In this chapter, learn how to install Selenium 4 for Python and the features of Python in Selenium 4, such as Relative locators, Browser manipulation, and Chrom DevTool protocol.
Selenium 4 Is Now W3C Compliant: JSON Wireframe protocol is retiring from Selenium 4, and they are adopting W3C protocol to learn in detail about the advantages and impact of these changes.
How To Use Selenium 4 Relative Locator? : Selenium 4 came with new features such as Relative Locators that allow constructing locators with reference and easily located constructors nearby. Get to know its different use cases with examples.
Selenium Grid 4 Tutorial For Distributed Testing: Selenium Grid 4 allows you to perform tests over different browsers, OS, and device combinations. It also enables parallel execution browser testing, reads up on various features of Selenium Grid 4 and how to download it, and runs a test on Selenium Grid 4 with best practices.
Selenium Video Tutorials: Binge on video tutorials on Selenium by industry experts to get step-by-step direction from automating basic to complex test scenarios with Selenium.
LambdaTest also provides certification for Selenium testing to accelerate your career in Selenium automation testing.
Get 100 minutes of automation test minutes FREE!!