panther icon indicating copy to clipboard operation
panther copied to clipboard

Panther Crawler needs rework

Open acantepie opened this issue 4 years ago • 1 comments

Hi,

A list of non-exhaustive things.

  • Some method are not typed (ex missing @return WebDriverElement[] on findElements method, filter() should take a string... etc)
  • selectFromXpathand filterXPathdoes the same thing.
  • I don't understand the visibility of methods : ̀getElement' is public while getElementOrThrow is private.
  • It's hard to understand why some methods return a Crawler (that implements WebDriverElement) and why some others methods return a WebDriverElement ..
  • You can use WebDriverBy object with getElements method while you can only use an xpath or cssSelector with filter / filterXPath methods..
  • selectXXX methods must be commented and xpath are too restricive for real usage.
  • All methods from WebTestAssertionsTrait or Client take string locator in contrary of Panther Crawler. This string is used to determine the WebDriverBy used with poor logic.

acantepie avatar Feb 22 '21 16:02 acantepie

ThomasLandauer avatar Apr 15 '21 12:04 ThomasLandauer