-
Notifications
You must be signed in to change notification settings - Fork 29
Test Samples
Nick Abalov edited this page Mar 17, 2015
·
5 revisions
This article is a stub. Please help us improve it.
- Run
Winium.StoreApps.Driver.exe --verbose
- Write your
test.py
# coding: utf-8
import unittest
from selenium.webdriver import Remote
class TestMainPage(unittest.TestCase):
desired_capabilities = {
"app": "C:\\YorAppUnderTest.appx"
}
def setUp(self):
self.driver = Remote(command_executor="http://localhost:9999",
desired_capabilities=self.desired_capabilities)
def test_button_tap_should_set_textbox_content(self):
self.driver.find_element_by_id('SetButton').click()
assert 'CARAMBA' == self.driver.find_element_by_id('MyTextBox').text
def tearDown(self):
self.driver.quit()
if __name__ == '__main__':
unittest.main()
- Run tests
python test.py