-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove visit of main page in start of tests
- Loading branch information
1 parent
e741974
commit ea8e351
Showing
3 changed files
with
0 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
# Copyright 2012 splinter authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file. | ||
from .fake_webapp import EXAMPLE_APP | ||
|
||
|
||
class ClickElementsTest: | ||
def test_click_links(self): | ||
self.browser.links.find_by_text("FOO").click() | ||
self.assertIn("BAR!", self.browser.html) | ||
self.browser.visit(EXAMPLE_APP) | ||
|
||
def test_click_element_by_css_selector(self): | ||
self.browser.find_by_css('a[href="http://localhost:5000/foo"]').click() | ||
self.assertIn("BAR!", self.browser.html) | ||
self.browser.visit(EXAMPLE_APP) | ||
|
||
def test_click_input_by_css_selector(self): | ||
self.browser.find_by_css('input[name="send"]').click() | ||
self.assertIn("My name is: Master Splinter", self.browser.html) | ||
self.browser.visit(EXAMPLE_APP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters