Skip to content

Commit 87cadbb

Browse files
committed
[py] Migrating more tests to marionette
1 parent 99d4173 commit 87cadbb

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

py/test/selenium/webdriver/chrome/chrome_launcher_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
2020

2121

22-
def testLaunchAndCloseBrowser():
22+
def test_launch_and_close_browser():
2323
driver = Chrome()
2424
driver.quit()
2525

py/test/selenium/webdriver/marionette/mn_launcher_tests.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,28 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
from selenium.webdriver import Firefox
19+
1820

1921
def test_launch_and_close_browser(driver):
2022
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()

0 commit comments

Comments
 (0)