Skip to content

Issue with PageFactory set up in Appium #277

Closed

Description

@niranjanparija

I have a Framework Set up with Silk Mobile but we want to migrate the entire set up to Appium.I am stuck with the PageFactory set up for Android and iOS as it is not at possible to reuse the same Pagefactory with Appium. Need yours quick help and suggestions on this.

Activity

  1. TikhomirovSergey commented on Dec 1, 2015

    @TikhomirovSergey
    Contributor

    @niranjanparija Please provide more details. I can't figure out what happens.

    Please attach to this ticket samples of your client code (with comments if it is possible), server output, error stacktraces. It will be great if you create gists and put links here.

    https://help.github.com/articles/creating-gists/

  2. TikhomirovSergey commented on Dec 1, 2015

    @TikhomirovSergey
    Contributor

    Also please provide info about your client and server versions

  3. niranjanparija commented on Dec 1, 2015

    @niranjanparija
    Author

    Please find the URL for the gists:
    https://gist.github.com/niranjanparija/2a8fe8b78960015d1bcf
    and suggest

  4. TikhomirovSergey commented on Dec 1, 2015

    @TikhomirovSergey
    Contributor

    @niranjanparija
    These samples don't show how do you use Selenium PageFactory class. Do you use it at all?
    Oficial document with description

    API

    API full package

    Appium common description

    Appium samples

    A new feature that is coming out

    Appium java_client is integrated with Selenium PageFactory via AppiumFieldDecorator

  5. niranjanparija commented on Dec 1, 2015

    @niranjanparija
    Author

    I just updated the code snippets which I want to run by referring the PageObjects and PageElements mentioned earlier with Appium.Please check this once if at all it can help you to understand the issue.
    https://gist.github.com/niranjanparija/3b706105004065236878

  6. TikhomirovSergey commented on Dec 1, 2015

    @TikhomirovSergey
    Contributor

    I think that it is totally not connected with Appium or Selenium Webdriver.
    Here is the exception text:
    https://gist.github.com/niranjanparija/3b706105004065236878#file-gistfile1-txt-L113

    It means that Reflection API can't find the convinient constructor. Available constructors:

    https://gist.github.com/niranjanparija/3b706105004065236878#file-issue-with-pagefactory-set-up-in-appium-277-L343

    https://gist.github.com/niranjanparija/3b706105004065236878#file-issue-with-pagefactory-set-up-in-appium-277-L363

    and PageElements mentioned earlier with Appium

    I'm really not sure that it works. AndroidDriver and IOSDriver fetch implementations of org.selenium.WebElement.

  7. TikhomirovSergey commented on Dec 4, 2015

    @TikhomirovSergey
    Contributor

    @niranjanparija Please reopen this issue/open a new one if you'll find some details which directly connected to Appium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions