Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Methods to locate elements through Appium

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 530
    Comment on it

    Locating element is the basic activity to automate any web application or the mobile application. The action can only be performed on the element once we have located the element successfully. If the element is not located then we get NoSuchElementException.

    The various methods provided by Appium to locate elements are:

    f1. indElementByClassName(String className)
    2. findElementByCssSelector(String css)
    3. findElementById(String id)
    4. findElementByLinkText(String link)
    5. findElementByName(String Name)
    6. findElementByPartialLinkText(String Link)
    7. findElementByTagName(String TagName)
    8. findElementByXPath(String Xpath)


    With the help of UIAutomator tool, we can locate element on any screen. These methods are present in Appium library and the steps to locate element with UIAutomator visit my another blog link provided below :

    How to locate elements through UIAutomatorViewer.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: