19122022 Selenium and other frameworks

https://github.com/jdi-testing/jdn-ai/issues/94

https://github.com/jdi-testing/jdn-ai/issues/585

Selenium: https://www.browserstack.com/selenium

Problem: Selenium doesn’t support типизированные elements

 

  1. What other framework types can be used?

    1. Selenide: ex: private SelenideElement searchField = $(byName("q"))

       

  2. What parts should be changed:

    1. locators: CSS selectors/xPath

    2. annotation:
      @findBy
      type (public/private) WebElement name
      example:
      @FindBy(css="#Bla-Bla-bla")

      public WebElement buttonLogin
      var - lower case
      name of var - upper case
      camel style

    3. project archive should be changed (templates, imports)

      • skip imports block

      • update backend to add new template

      • add page init

    4. For one page object only 1 framework can be used