Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tzatziki Front] interfaces (Browser, HTMLElement, Action) #254

Open
Tracked by #253
alexandrepa opened this issue Mar 29, 2024 · 0 comments
Open
Tracked by #253

[Tzatziki Front] interfaces (Browser, HTMLElement, Action) #254

alexandrepa opened this issue Mar 29, 2024 · 0 comments

Comments

@alexandrepa
Copy link
Collaborator

alexandrepa commented Mar 29, 2024

This root module defined 3 important interfaces that will be used to interact with front components :

Browser
Interface that expose method to manipulate the browser

  • get(url) : navigate to the provided url
  • find(cssSelector) : return a list of HTMLElement from the css selectors
  • actionOn(cssSelector, action , params) : perform specified action on list of HTMLElement that match the css selector
  • waitForElement(cssSelector, isVisible) : wait until this cssSelector is available on page (and visible if needed)
  • waitForUrl(url) : wait until the browser is redirected to this url
  • reload() : reload page with current url

We can notice that we can add a timeout parameter on a lof of those methods with default value.
cssSelector accept CSS or XPath format

Keyboard press ?
waitForPopup ?

HTMLElement
Interface that expose method to manipulate HTMLElement

  • getId() : return id of the html element
  • getClasses() : return classes of the html element
  • getAttributes() : return a Map of the attributes of the html element

Action
Enum of actions that can be made on an HTMLElement

  • CLICK
  • FILL
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

No branches or pull requests

1 participant