Debian Codegraph @

test/selenium/webdriver/chrome/chrome_launcher_tests.py

raw symbols SCIP
1 # Licensed to the Software Freedom Conservancy (SFC) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The SFC licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied. See the License for the
15 # specific language governing permissions and limitations
16 # under the License.
17
18 import pytest
19
20
21 @pytest.mark.no_driver_after_test
22 def test_launch_and_close_browser(clean_driver, clean_service):
23 driver = clean_driver(service=clean_service)
24 driver.quit()
25
26
27 @pytest.mark.no_driver_after_test
28 def test_we_can_launch_multiple_chrome_instances(clean_driver, clean_service):
29 driver1 = clean_driver(service=clean_service)
30 driver2 = clean_driver(service=clean_service)
31 driver3 = clean_driver(service=clean_service)
32 driver1.quit()
33 driver2.quit()
34 driver3.quit()