hints: add another iframe test

This commit is contained in:
Jakub Klinkovský 2016-03-16 21:47:58 +01:00
parent 164df521c1
commit e121bd764f
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Opening links in a specific iframe</title>
</head>
<body>
<iframe id="my-iframe"></iframe>
<p>
A <a href="/data/hello.txt" target="my-iframe">link</a> to be opened in the iframe above.
</p>
</body>
</html>

View File

@ -28,3 +28,17 @@ Feature: Using hints
And I run :hint links normal And I run :hint links normal
And I run :follow-hint a And I run :follow-hint a
Then "acceptNavigationRequest, url http://localhost:*/data/hello2.txt, type NavigationTypeLinkClicked, *" should be logged Then "acceptNavigationRequest, url http://localhost:*/data/hello2.txt, type NavigationTypeLinkClicked, *" should be logged
Scenario: Opening a link inside a specific iframe
When I open data/hints/iframe_target.html
And I run :hint links normal
And I run :follow-hint a
Then "acceptNavigationRequest, url http://localhost:*/data/hello.txt, type NavigationTypeLinkClicked, *" should be logged
Scenario: Opening a link with specific target frame in a new tab
When I open data/hints/iframe_target.html
And I run :hint links tab
And I run :follow-hint a
Then the following tabs should be open:
- data/hints/iframe_target.html
- data/hello.txt (active)