Skip to content

Commit 64c56c2

Browse files
committed
Update the tests
1 parent 6f9a5fc commit 64c56c2

File tree

2 files changed

+23
-28
lines changed

2 files changed

+23
-28
lines changed

examples/test_roblox_mobile.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""Mobile device test for Chromium-based browsers
2+
Example: "pytest test_roblox_mobile.py --mobile"
3+
"""
4+
from seleniumbase import BaseCase
5+
6+
if __name__ == "__main__":
7+
from pytest import main
8+
main([__file__, "--mobile", "-s"])
9+
10+
11+
class RobloxTests(BaseCase):
12+
def test_roblox_mobile_site(self):
13+
if not self.mobile_emulator:
14+
self.open_if_not_url("about:blank")
15+
print("\n This test is only for mobile-device web browsers!")
16+
print(' (Use "--mobile" to run this test in Mobile Mode!)')
17+
self.skip('Use "--mobile" to run this test in Mobile Mode!')
18+
self.open("https://www.roblox.com/")
19+
self.assert_element("#download-the-app-container")
20+
self.assert_text("Roblox for Android", "p.roblox-for-platform")
21+
self.assert_text("Continue in App", "a.primary-link")
22+
self.highlight("p.roblox-for-platform", loops=8)
23+
self.highlight("a.primary-link", loops=8)

examples/test_skype_site.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)