-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
21 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
import time | ||
import unittest | ||
|
||
from app.Pages.home_page import HomePage | ||
from app.TestBase.base_test import BaseTest | ||
from app.Pages.home_page import HomePage | ||
|
||
|
||
class TestMain(BaseTest): | ||
def setUp(self): | ||
super().setUp() | ||
self.home_page = HomePage(self.driver) | ||
|
||
def test_홈_페이지_각종_버튼을_클릭한다(self): | ||
self.assert_button1_클릭하면_버튼_라벨이_touch_로_변경된다() | ||
self.home_page.click_button_2() | ||
self.home_page.input_text_edit("자동화 테스트") | ||
self.home_page.click_check_box() | ||
self.home_page.click_switch_button() | ||
time.sleep(5) | ||
|
||
# 잠시 확인을 위해 | ||
def assert_button1_클릭하면_버튼_라벨이_touch_로_변경된다(self): | ||
self.home_page.click_button_1() | ||
time.sleep(1) | ||
self.home_page.get_element(self.home_page.button_1_touch) | ||
|
||
class MainTest(BaseTest): | ||
def test_verify_example_element(self): | ||
home_page = HomePage(self.driver) | ||
|
||
if __name__ == "__main__": | ||
unittest.main() | ||
home_page.close_popup_if_present() |