Merge branch 'paretje-webkitelemparent'

This commit is contained in:
Florian Bruhin 2016-10-17 22:29:37 +02:00
commit d24162927a
3 changed files with 7 additions and 2 deletions

View File

@ -160,9 +160,9 @@ Contributors, sorted by the number of commits in descending order:
* Patric Schmitz
* Tarcisio Fedrizzi
* Claude
* Kevin Velghe
* Corentin Julé
* meles5
* Kevin Velghe
* Philipp Hansch
* Daniel Karbach
* Panagiotis Ktistakis

View File

@ -148,7 +148,7 @@ class WebKitElement(webelem.AbstractWebElement):
def parent(self):
self._check_vanished()
elem = self._elem.parent()
if elem is None:
if elem is None or elem.isNull():
return None
return WebKitElement(elem, tab=self._tab)

View File

@ -180,6 +180,11 @@ Feature: Using hints
- data/hints/iframe_target.html
- data/hello.txt (active)
Scenario: Clicking on iframe with :hint all current
When I open data/hints/iframe.html
And I hint with args "all current" and follow a
Then no crash should happen
### hints -> auto-follow-timeout
@not_osx