[MGNLTEST-105] Consolidate initial existence check for PageObjects Created: 08/Oct/20  Updated: 19/Aug/21  Resolved: 16/Aug/21

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.2

Type: Task Priority: Neutral
Reporter: Mikaël Geljić Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: VN-Testing
Remaining Estimate: Not Specified
Time Spent: 0.5h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: core-TF-features-bugs-improvements
Story Points: 5

 Description   

Currently assertExists contract is vague and slightly inconvenient (void return type, throws Selenium exception)

  • we foresee evolving the PageObject interface by replacing or complementing #assertExists with and #exists method (facilitates assertions too)
  • should return boolean and/or Optional<WebElement> (if the latter, must be package-private not to expose Selenium API)
  • PageObjects provider facility should be able to perform additional visibility checks when instantiating POs, so that all individual POs don't have to write custom checks.

Generated at Mon Feb 12 07:45:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.