File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
py/test/selenium/webdriver Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 19
19
from selenium .webdriver .common .desired_capabilities import DesiredCapabilities
20
20
21
21
22
- def testLaunchAndCloseBrowser ():
22
+ def test_launch_and_close_browser ():
23
23
driver = Chrome ()
24
24
driver .quit ()
25
25
Original file line number Diff line number Diff line change 15
15
# specific language governing permissions and limitations
16
16
# under the License.
17
17
18
+ from selenium .webdriver import Firefox
19
+
18
20
19
21
def test_launch_and_close_browser (driver ):
20
22
assert 'browserName' in driver .capabilities
23
+
24
+
25
+ def test_we_can_launch_multiple_firefox_instances (capabilities ):
26
+ driver1 = Firefox (capabilities = capabilities )
27
+ driver2 = Firefox (capabilities = capabilities )
28
+ driver3 = Firefox (capabilities = capabilities )
29
+ driver1 .quit ()
30
+ driver2 .quit ()
31
+ driver3 .quit ()
32
+
33
+
34
+
35
+ def test_launch_firefox_with_none_log_path (capabilities ):
36
+ driver = Firefox (capabilities = capabilities , log_path = None )
37
+ driver .quit ()
38
+
39
+
40
+ def test_launch_firefox_with_empty_string_log_path (capabilities ):
41
+ driver = Firefox (capabilities = capabilities , log_path = "" )
42
+ driver .quit ()
You can’t perform that action at this time.
0 commit comments