Tag Info

Hot answers tagged


My rule of thumb when designing UI tests is to do a basic check that the UI works, but coverage of the exact logic really should be shifted further down the testing pyramid (this will save execution time, plus lower level tests are better suited to it). A simple check of the first and last elements should suffice. That said, if you don't have good coverage ...


Your XPaths localize these elements, because these contain the text you've specified: <td class="first-col">Premium:</td> <td class="first-col">NJ State Tax:</td> You want the next td where the actual values are. In this case, try adding /following-sibling::td, like so: [FindsBy(How = How.XPath, Using = ...

Only top voted, non community-wiki answers of a minimum length are eligible