Skip to content

Refactor T2C runner about "findElment" - #298

Merged
AichiB7A (TedaLIEz) merged 7 commits into
mainfrom
user/guojian/refactor_t2c_find_element
Feb 23, 2023
Merged

AichiB7A (TedaLIEz) merged 7 commits into
mainfrom
user/guojian/refactor_t2c_find_element

Conversation

@TedaLIEz

@TedaLIEz AichiB7A (TedaLIEz) commented Feb 23, 2023 •

Copy link
Copy Markdown
Contributor

Goal

  1. Following best practice of FastJson, annotate AndroidElementInfo
  2. BaseDriverController should not expose any details inside, for example access to webDriver is not good to me.
  3. Refactor findElement method with factory pattern, support dynamic registration and default factories of current existing controllers.
  4. In this PR, we minimize the change in the finder package when changes on element search, no code changes should happen in controller classes, controller should only be responsible for decoration of WebDriver (Our drivercontroller is a decoration of WebDriver
  5. In this PR, ElementInfo will not be aware of any info about how to find itself in page, which is not its responsibility. They are pure POJO classes.

@TedaLIEz
AichiB7A (TedaLIEz) enabled auto-merge (squash) February 23, 2023 09:17
@TedaLIEz
AichiB7A (TedaLIEz) merged commit a7a7ae0 into main Feb 23, 2023
@TedaLIEz
AichiB7A (TedaLIEz) deleted the user/guojian/refactor_t2c_find_element branch February 23, 2023 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants