dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Added support for closing windows #100

Open ryanzec opened 10 years ago

ryanzec commented 10 years ago

It seems like if a test opens a new tab and then more test continue, they can fail because of the opened tab. I added support to close the tab with the JSON Wire Protocol and after that, the test would pass (tried it 5 time with no problems).

We should add support for this to be able to combat this issue. The close() action will will close the current window and autmatically select the parent window.

Related issues: https://github.com/dalekjs/dalek-internal-webdriver/issues/9 https://github.com/dalekjs/dalek-driver-native/issues/15