selene
selene copied to clipboard
browser.close_current_tab or browser.close_current_window alias for browser.close() ?
relates to #101 read its comments to understand the point...
- What about just to add a doc string for this function? And leave users to read the manual.
- And what's the problem to add a doc string for another one - "quit()" function too.
So those users, who would use imports directly - could read the doc string and understand what "quit" method means in context.
Selene is kind of "test as humans use"-tool, not "as driver operates"-tools. That's why I prefer more user-oriented naming, to make tests code as much readable and obvious as possible. Readability is very important in tests:)
Yet... Maybe specifically with these commands - it will be too much... And it would be better to keep names as "close" and "quit"... Let's see...