File tree Expand file tree Collapse file tree 2 files changed +23
-28
lines changed Expand file tree Collapse file tree 2 files changed +23
-28
lines changed Original file line number Diff line number Diff line change 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 )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments