Created
December 20, 2020 05:23
-
-
Save bbchriscesar/e127ffd48b851ce755308b5cee2aa2ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Common import mWebBaseClass as ss | |
| import pytest | |
| import os | |
| @pytest.mark.parametrize("lang, udid, systemPort", [ | |
| ("en-US,ja,ko,id", "FA7BP1A03027", "8201") | |
| ] | |
| ) | |
| def test_AndroidTestCase(lang, udid, systemPort): | |
| for lang in lang.split(","): | |
| ss.setupDriver(udid, systemPort) | |
| path = '/Users/christiannec/PycharmProjects/AndroidProjects/Screenshots/Sample/' + lang | |
| if not os.path.exists(path): | |
| os.makedirs(path) | |
| # Start your script here... | |
| ss.navigateToURL('https://news.google.com/?hl=' + lang) | |
| ss.customDelay(3) | |
| ss.takeScreenshot(path + '/' +'mobileWeb1') | |
| ss.pageDown() | |
| ss.takeScreenshot(path + '/' + 'mobileWeb2') | |
| ss.tearDown() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment