Best Selenium code snippet using org.openqa.selenium.remote.RemoteWebDriver.execute
Source:pureDrivers.java
...599 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;...
Source:NLPerfectoWebDriver.java
...359 /**360 * @param script361 * @param args362 * @return363 * @see org.openqa.selenium.remote.RemoteWebDriver#executeScript(java.lang.String, java.lang.Object[])364 */365 @Override366 public Object executeScript(String script, Object... args) {367 return wrapperUtils.wrapIfNecessary(webDriver, remoteWebDriver.executeScript(script, args));368 }369 /**370 * @param script371 * @param args372 * @return373 * @see org.openqa.selenium.remote.RemoteWebDriver#executeAsyncScript(java.lang.String, java.lang.Object[])374 */375 @Override376 public Object executeAsyncScript(String script, Object... args) {377 return wrapperUtils.wrapIfNecessary(webDriver, remoteWebDriver.executeAsyncScript(script, args));378 }379 /**380 * @return381 * @see org.openqa.selenium.remote.RemoteWebDriver#switchTo()382 */383 @Override384 public TargetLocator switchTo() {385 return webDriver.switchTo();386 }387 /**388 * @return389 * @see org.openqa.selenium.remote.RemoteWebDriver#navigate()390 */391 @Override...
Source:ChromeDriver.java
...214 *215 * @param id chrome app id216 */217 public void launchApp(String id) {218 execute(ChromeDriverCommand.LAUNCH_APP, ImmutableMap.of("id", id));219 }220 221}...
Source:RemoteWebDriverExtended.java
...45 }46 /*47 * (non-Javadoc)48 * 49 * @see org.openqa.selenium.remote.RemoteWebDriver#executeScript(java.lang.50 * String, java.lang.Object[])51 */52 @Override53 public Object executeScript(String script, Object... args) {54 String params = StringUtils.join(Lists.newArrayList(args), "\n");55 return super.executeScript(script, args);56 }57 /*58 * (non-Javadoc)59 * 60 * @see org.openqa.selenium.remote.RemoteWebDriver#get(java.lang.String)61 */62 @Override63 public void get(String url) {64 super.get(url);65 }66 /*67 * (non-Javadoc)68 * 69 * @see org.openqa.selenium.remote.RemoteWebDriver#findElement(org.openqa.70 * selenium.By)71 */72 @Override73 public WebElement findElement(By by) {74 StopWatch timer = new StopWatch();75 timer.start();76 try {77 WebElement element = super.findElement(by);78 return element;79 } catch (Exception e) {80 throw e;81 }82 }83 private String getTimerString(StopWatch timer) {84 return "(" + TimeUnit.SECONDS.convert(timer.getNanoTime(), TimeUnit.NANOSECONDS) + "s) ";85 }86 @Override87 protected WebElement findElement(String by, String using) {88 List<WebElement> allElements = findElements(by, using);89 if (allElements == null || allElements.isEmpty())90 throw new NoSuchElementException("Cannot locate an element using " + toString());91 return allElements.get(0);92 }93 /**94 * Switch the {@link RemoteWebDriver} driver context. A list with possible95 * contexts can be generated by the96 * {@link #getCurrentContextHandle(RemoteWebDriver)} method. To check the97 * current context, use the98 * {@link #getCurrentContextHandle(RemoteWebDriver)} method.99 * 100 * @param driver101 * The context of the passed driver will be changed102 * @param context103 * The context to change to104 */105 public boolean switchToContext(Context context) {106 try {107 RemoteExecuteMethod executeMethod = new RemoteExecuteMethod(this);108 Map<String, String> params = new HashMap<String, String>();109 params.put("name", context.name());110 executeMethod.execute(DriverCommand.SWITCH_TO_CONTEXT, params);111 return true;112 } catch (Exception e) {113 logThread("Could not switch context");114 }115 return false;116 }117 /**118 * Gets the {@link String} value of the current context of the driver. In119 * order to change the current context, use the120 * {@link #switchToContext(RemoteWebDriver, String)} method.121 * 122 * @param driver123 * The driver to get the context from.124 * @return {@link String} value of the current context.125 */126 public Context getCurrentContextHandle() {127 try {128 RemoteExecuteMethod executeMethod = new RemoteExecuteMethod(this);129 String context = (String) executeMethod.execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE, null);130 if (context.toLowerCase().contains("webview"))131 return Context.WEBVIEW;132 else if (context.toLowerCase().contains("native"))133 return Context.NATIVE_APP;134 else if (context.toLowerCase().contains("visual"))135 return Context.VISUAL;136 } catch (Exception e) {137 logThread("Could not get context!");138 }139 return Context.WEBVIEW;140 }141 private void logThread(String msg) {142 // if (logMsgs)143 System.out.println("PopUpUtils: " + msg);...
Source:TestRDW.java
...26public class TestRDW {27 public static RemoteWebDriver createDriverFromSession(final SessionId sessionId, URL command_executor) {28 CommandExecutor executor = new HttpCommandExecutor(command_executor) {29 @Override30 public Response execute(Command command) throws IOException {31 Response response = null;32 if (command.getName() == "newSession") {33 response = new Response();34 response.setSessionId(sessionId.toString());35 response.setStatus(0);36 response.setValue(Collections.<String, String>emptyMap());37 try {38 Field commandCodec = null;39 commandCodec = this.getClass().getSuperclass().getDeclaredField("commandCodec");40 commandCodec.setAccessible(true);41 commandCodec.set(this, new W3CHttpCommandCodec());42 Field responseCodec = null;43 responseCodec = this.getClass().getSuperclass().getDeclaredField("responseCodec");44 responseCodec.setAccessible(true);45 responseCodec.set(this, new W3CHttpResponseCodec()); // JsonHttpCommandCodec --> firefox and46 // W3CHttpResponseCodec ---> chrome47 } catch (NoSuchFieldException e) {48 e.printStackTrace();49 } catch (IllegalAccessException e) {50 e.printStackTrace();51 }52 } else {53 response = super.execute(command);54 }55 return response;56 }57 };58 return new RemoteWebDriver(executor, new DesiredCapabilities());59 }60 61 public void selectRadioButton(List<WebElement> oElement, String option) {62 int radioCount = oElement.size();63 for (int i = 0; i < radioCount; i++) {64 String radioValue = oElement.get(i).getAttribute("value");65 if (radioValue.equalsIgnoreCase(option)) { 66 oElement.get(i).click(); 67 break;
...
Source:utils.java
...35 public static void startApp(String appName,RemoteWebDriver d )36 {37 Map<String,String> params = new HashMap<String,String>();38 params.put("name", appName);39 d.executeScript("mobile:application:open", params);40 }41 public static void stoptApp(String appName,RemoteWebDriver d )42 {43 Map<String,String> params = new HashMap<String,String>();44 params.put("name", appName);45 d.executeScript("mobile:application:close", params);46 }47 public static void setLocation(String address,RemoteWebDriver d )48 {49 Map<String,String> params = new HashMap<String,String>();50 params.put("address", address);51 d.executeScript("mobile:location:set", params);52 }53 public static void setLocationCoordinates(String latlong,RemoteWebDriver d )54 {55 Map<String,String> params = new HashMap<String,String>();56 params.put("coordinates", latlong);57 d.executeScript("mobile:location:set", params);58 }59 public static void pressKey(String key,RemoteWebDriver d )60 {61 Map<String,String> params = new HashMap<String,String>();62 params.put("keySequence", key);63 d.executeScript("mobile:presskey:", params);64 }65 public static void switchToContext(RemoteWebDriver driver, String context) {66 RemoteExecuteMethod executeMethod = new RemoteExecuteMethod(driver);67 Map<String,String> params = new HashMap<String,String>();68 params.put("name", context);69 executeMethod.execute(DriverCommand.SWITCH_TO_CONTEXT, params);70 }71 public static void swipe(String start,String end,RemoteWebDriver d )72 {73 Map<String,String> params = new HashMap<String,String>();74 params.put("start", start); //50%,50%75 params.put("end", end); //50%,50%76 d.executeScript("mobile:touch:swipe", params);77 }78 79 public static void rotateDevice (String stat,WebDriver d )80 {81 // operation - next or reset82 Map<String,String> params = new HashMap<String,String>();83 params.put("operation", stat);84 ((RemoteWebDriver) d).executeScript("mobile:handset:rotate", params);85 }86 87 public static void downloadReport(RemoteWebDriver driver, String type, String fileName) throws IOException {88 try { 89 String command = "mobile:report:download"; 90 Map<String, Object> params = new HashMap<>(); 91 params.put("type", "pdf"); 92 String report = (String)driver.executeScript(command, params); 93 File reportFile = new File("c:\\test\\uzi.pdf"); 94 BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(reportFile)); 95 byte[] reportBytes = OutputType.BYTES.convertFromBase64Png(report); 96 output.write(reportBytes); output.close(); 97 } catch (Exception ex) { 98 System.out.println("Got exception " + ex); }99 }100 101 public static void sleep(long millis) {102 try {103 Thread.sleep(millis);104 } catch (InterruptedException e) {105 }106 }...
Source:Selenium2Test.java
...19public class Selenium2Test{20 public static RemoteWebDriver createDriverFromSession(final SessionId sessionId, URL command_executor){21 CommandExecutor executor = new HttpCommandExecutor(command_executor) {22 @Override23 public Response execute(Command command) throws IOException{24 Response response = null;25 if (command.getName() == "newSession") {26 response = new Response();27 response.setSessionId(sessionId.toString());28 response.setStatus(0);29 response.setValue(Collections.<String, String>emptyMap());30 try {31 Field commandCodec = null;32 commandCodec = this.getClass().getSuperclass().getDeclaredField("commandCodec");33 commandCodec.setAccessible(true);34 commandCodec.set(this, new W3CHttpCommandCodec());35 Field responseCodec = null;36 responseCodec = this.getClass().getSuperclass().getDeclaredField("responseCodec");37 responseCodec.setAccessible(true);38 responseCodec.set(this, new W3CHttpResponseCodec());39 } catch (NoSuchFieldException e) {40 e.printStackTrace();41 } catch (IllegalAccessException e) {42 e.printStackTrace();43 }44 } else {45 response = super.execute(command);46 }47 return response;48 }49 };50 return new RemoteWebDriver(executor, new DesiredCapabilities());51 }52 public static void main(String [] args) {53 System.setProperty("webdriver.gecko.driver","/Users/amin/Documents/geckodriver/geckodriver");54 FirefoxOptions opts = new FirefoxOptions();55 opts.setCapability( "moz:webdriverClick", false );56 WebDriver driver = new FirefoxDriver( opts );57 //System.setProperty("webdriver.chrome.driver","/Applications/Google Chrome.app/Contents/MacOS/Google Chrome");58 //ChromeDriver driver = new ChromeDriver();59 System.out.println("test");...
Source:W3CActions.java
...29 CommandExecutor executor = driver.getCommandExecutor();30 31 long start = System.currentTimeMillis();32 Command command = new Command(driver.getSessionId(), "actions", allParameters);33 Response response = executor.execute(command);34 35 new ErrorHandler(true)36 .throwIfResponseFailed(response, System.currentTimeMillis() - start);37 38 return null;39 }40}...
execute
Using AI Code Generation
1import org.openqa.selenium.WebDriver;2import org.openqa.selenium.chrome.ChromeDriver;3import org.openqa.selenium.remote.RemoteWebDriver;4import org.openqa.selenium.remote.Response;5public class ExecuteMethod {6public static void main(String[] args) {7System.setProperty("webdriver.chrome.driver", "D:\\Selenium\\chromedriver.exe");8WebDriver driver = new ChromeDriver();9RemoteWebDriver rdriver = (RemoteWebDriver) driver;10Response response = rdriver.execute("getLog", null);11System.out.println(response.getValue());12driver.quit();13}14}15{level=ALL, message=, timestamp=1630457782312, type=0}
execute
Using AI Code Generation
1JavascriptExecutor js = (JavascriptExecutor)driver;2js.executeScript("arguments[0].click();", element);3JavascriptExecutor js = (JavascriptExecutor)driver;4js.executeAsyncScript("arguments[0].click();", element);5JavascriptExecutor js = (JavascriptExecutor)driver;6js.executeScript("arguments[0].click();", element);7JavascriptExecutor js = (JavascriptExecutor)driver;8js.executeAsyncScript("arguments[0].click();", element);9JavascriptExecutor js = (JavascriptExecutor)driver;10js.executeScript("arguments[0].click();", element);11JavascriptExecutor js = (JavascriptExecutor)driver;12js.executeAsyncScript("arguments[0].click();", element);13JavascriptExecutor js = (JavascriptExecutor)driver;14js.executeScript("arguments[0].click();", element);15JavascriptExecutor js = (JavascriptExecutor)driver;16js.executeAsyncScript("arguments[0].click();", element);17JavascriptExecutor js = (JavascriptExecutor)driver;18js.executeScript("arguments[0].click();", element);19JavascriptExecutor js = (JavascriptExecutor)driver;20js.executeAsyncScript("arguments[0].click();", element);21JavascriptExecutor js = (
execute
Using AI Code Generation
1import org.openqa.selenium.*;2import org.openqa.selenium.chrome.*;3import org.openqa.selenium.remote.*;4public class ExecuteJavascript {5 public static void main(String[] args) {6 System.setProperty("webdriver.chrome.driver", "C:\\chromedriver.exe");7 WebDriver driver = new ChromeDriver();8 RemoteWebDriver rwd = (RemoteWebDriver)driver;9 rwd.executeScript("alert('Welcome to Selenium with Java')");10 }11}
execute
Using AI Code Generation
1WebDriver driver = new ChromeDriver();2JavascriptExecutor js = (JavascriptExecutor) driver;3js.executeScript("alert('hello world!');");4driver.quit();5We can also use the executeScript() method to execute a javascript code from a file. For example, the following code will execute a javascript code stored in a file named script.js:6WebDriver driver = new ChromeDriver();7JavascriptExecutor js = (JavascriptExecutor) driver;8driver.quit();9The executeScript() method will return the value of the last expression evaluated in the script. For example, the following code will return the value of the expression 2 + 2:10WebDriver driver = new ChromeDriver();11JavascriptExecutor js = (JavascriptExecutor) driver;12Object result = js.executeScript("return 2 + 2;");13driver.quit();
execute
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 org.openqa.selenium.remote.RemoteWebDriver;6import org.openqa.selenium.remote.RemoteWebElement;7import org.openqa.selenium.support.ui.ExpectedConditions;8import org.openqa.selenium.support.ui.WebDriverWait;9import java.util.ArrayList;10import java.util.List;11public class ExecuteJavaScript {12 public static void main(String[] args) {13 System.setProperty("webdriver.chrome.driver", "C:\\Users\\Admin\\Downloads\\chromedriver_win32\\chromedriver.exe");14 WebDriver driver = new ChromeDriver();15 WebDriverWait wait = new WebDriverWait(driver, 10);16 wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("nav-link-accountList")));17 RemoteWebDriver rwd = (RemoteWebDriver) driver;18 RemoteWebElement element = (RemoteWebElement) driver.findElement(By.id("nav-link-accountList"));19 List<WebElement> links = (List<WebElement>) rwd.executeScript("return arguments[0].getElementsByTagName('a');", element);20 System.out.println(links);21 driver.quit();22 }23}24[<a class="nav-a nav-a-2" href="/gp/css/homepage.html/ref=nav_ya_signin?ie=UTF8&yourAccount=1&yourOrders=0">Your Account</a>, <a class="nav-a nav-a-2" href="/gp/css/order-history/ref=nav_ya_orders?ie=UTF8&yourAccount=1&yourOrders=1">Your Orders</a>, <a class="nav-a nav-a-2" href="/gp/css/gc/balance/ref=nav_ya_gift_certs?ie=UTF8&yourAccount=1&yourGiftCards=0">Gift Cards</a>, <a class="nav-a nav-a-2" href="/gp/css/yourstore/homepage.html/ref=nav_ya_yourstore?ie=UTF8&yourAccount=1&
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!!