Commit c900fd26 authored by Ishrat Manzoor's avatar Ishrat Manzoor
Browse files

update

parents 139af130 e90c954b
......@@ -343,3 +343,63 @@ console.warn: SearchSettings: "get: No settings file exists, new profile?" (new
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1617690521961 geckodriver INFO Listening on 127.0.0.1:60156
1617690522972 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/var/folders/4h/49ytp1p10msfq4lmgf9vjt1r0000gn/T/rust_mozprofileT4JWgC"
*** You are running in headless mode.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1617690526187 Marionette INFO Listening on port 60171
1617690526238 Marionette WARN TLS certificate errors will be ignored for this session
1617690538279 Marionette INFO Stopped listening on port 60171
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1617690871142 geckodriver INFO Listening on 127.0.0.1:61879
1617690872153 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/var/folders/4h/49ytp1p10msfq4lmgf9vjt1r0000gn/T/rust_mozprofileqcR257"
*** You are running in headless mode.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1617690874828 Marionette INFO Listening on port 61895
1617690874927 Marionette WARN TLS certificate errors will be ignored for this session
1617690886826 Marionette INFO Stopped listening on port 61895
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1617690992781 geckodriver INFO Listening on 127.0.0.1:62556
1617690993787 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/var/folders/4h/49ytp1p10msfq4lmgf9vjt1r0000gn/T/rust_mozprofileGCnCG1"
*** You are running in headless mode.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1617690996799 Marionette INFO Listening on port 62574
1617690996903 Marionette WARN TLS certificate errors will be ignored for this session
1617691009133 Marionette INFO Stopped listening on port 62574
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1617691409855 geckodriver INFO Listening on 127.0.0.1:64806
1617691410871 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/var/folders/4h/49ytp1p10msfq4lmgf9vjt1r0000gn/T/rust_mozprofileRHnhqq"
*** You are running in headless mode.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1617691413730 Marionette INFO Listening on port 64821
1617691413785 Marionette WARN TLS certificate errors will be ignored for this session
1617691426228 Marionette INFO Stopped listening on port 64821
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1617692298694 geckodriver INFO Listening on 127.0.0.1:53148
1617692299702 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/var/folders/4h/49ytp1p10msfq4lmgf9vjt1r0000gn/T/rust_mozprofilehoFQKj"
*** You are running in headless mode.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1617692302471 Marionette INFO Listening on port 53163
1617692302499 Marionette WARN TLS certificate errors will be ignored for this session
1617692314562 Marionette INFO Stopped listening on port 53163
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1617692528703 geckodriver INFO Listening on 127.0.0.1:54454
1617692529714 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "--marionette" "-headless" "-foreground" "-no-remote" "-profile" "/var/folders/4h/49ytp1p10msfq4lmgf9vjt1r0000gn/T/rust_mozprofile4ChdwD"
*** You are running in headless mode.
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1617692532691 Marionette INFO Listening on port 54469
1617692532788 Marionette WARN TLS certificate errors will be ignored for this session
1617692544953 Marionette INFO Stopped listening on port 54469
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
......@@ -8,13 +8,19 @@ data = data_env.get_data()
class ChannelOptionsPage(BasePage):
VALUE = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(4) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
SOURCE_1 = ".rcx-sidebar-item:nth-child(4)"
OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(4)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
#VALUE = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(4) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
VALUE = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(4) > a > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
#SOURCE_1 = ".rcx-sidebar-item:nth-child(4)"
SOURCE_1 = ".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(4)"
#OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(4)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(4) > a > div > div.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rcx-sidebar-item__menu-wraper > button")
FAVORITE_BUTTON = (By.XPATH, "//*[contains(text(),'Favorite')]")
FAVORITE_ITEM = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(2) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
SOURCE_2 = ".rcx-sidebar-item:nth-child(2)"
FAVORITE_ITEM_OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(2)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
#FAVORITE_ITEM = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(2) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
FAVORITE_ITEM = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(2) > a > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
#SOURCE_2 = ".rcx-sidebar-item:nth-child(2)"
SOURCE_2 = ".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(2)"
#FAVORITE_ITEM_OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(2)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
FAVORITE_ITEM_OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(2) > a > div > div.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rcx-sidebar-item__menu-wraper > button")
UNFAVORITE_BUTTON = (By.XPATH, "//*[contains(text(),'Unfavorite')]")
HIDE_OPTION = (By.XPATH, "//*[contains(text(),'Hide')]")
HIDE_BUTTON = (By.XPATH, "//button[contains(text(),'Yes, hide it!')]")
......
......@@ -8,20 +8,21 @@ data = data_env.get_data()
class CreateDataPage(BasePage):
MORE_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/aside/div[1]/div/div/div[2]/button[6]")
ADMINISTRATION_BUTTON = (By.XPATH, "//span[contains(text(),'Administration')]")
USERS_BUTTON = (By.XPATH, "//div[contains(text(), 'Users')]")
#MORE_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/aside/div[1]/div/div/div[2]/button[6]")
AVATAR = (By.XPATH, "//*[@id='rocket-chat']/aside/div[1]/div/div/div[1]")
ADMINISTRATION_BUTTON = (By.CSS_SELECTOR, "body > div.rc-popover.rc-popover-- > div > div > div > div:nth-child(5) > li > div > div.rcx-option__content")
USERS_BUTTON = (By.CSS_SELECTOR, "#rocket-chat > aside > div.flex-nav > div > div > div > div > div.rc-scrollbars-view > div > div > a:nth-child(3)")
NEW_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/section/div[1]/div/div/button[1]")
NAME_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[1]/span/input")
USERNAME_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[2]/span/label/input")
EMAIL_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[3]/span[1]/label/input")
STATUS_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[4]/span/label/input")
BIO_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[5]/span/label/textarea")
NICKNAME_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[6]/span/label/input")
PASSWORD_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[7]/span/label/input")
ROLES_INPUT = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[10]/span/div/div[1]/div/input")
OPTION_USER = (By.CSS_SELECTOR, "body > div:nth-child(23) > div > div > ol > li:nth-child(5) > div > div")
SAVE_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/div[2]/section/div/div/div/div[1]/div[2]/div/div/div/form/fieldset/div[13]/span/div/button[2]")
NAME_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(1) > span > input")
USERNAME_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(2) > span > label > input")
EMAIL_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(3) > span:nth-child(2) > label > input")
STATUS_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(4) > span > label > input")
BIO_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(5) > span > label > textarea")
NICKNAME_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(6) > span > label > input")
PASSWORD_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(7) > span > label > input")
ROLES_INPUT = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(10) > span >div>div>div>input")
OPTION_USER = (By.CSS_SELECTOR, "body > div:nth-child(22) > div > div > ol > li:nth-child(5) > div >label>input")
SAVE_BUTTON = (By.CSS_SELECTOR, "div.rc-scrollbars-view > form > fieldset > div:nth-child(13) > span > div > button.rcx-box.rcx-box--full.rcx-box--animated.rcx-button.rcx-css-t3n91h")
USER_CREATED = (By.XPATH, "//*[contains(text(),'" + data.new_user + "')]")
DM_BUTTON = (By.XPATH, "//button[contains(text(),'Direct Message')]")
......@@ -30,22 +31,22 @@ class CreateDataPage(BasePage):
ADD_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/aside/div[1]/div/div/div[2]/button[5]")
CHANNEL_BUTTON = (By.XPATH, "//span[contains(text(),'Channel')]")
CHANNEL_NAME_INPUT = (By.XPATH, "//*[@id='create-channel']/div[2]/div[1]/label/div[2]/input")
INVITE_USER_INPUT = (By.XPATH, "//*[@id='create-channel']/div[2]/div[2]/label/div[2]/div[2]/input")
CREATE_BUTTON = (By.XPATH, "//*[@id='create-channel']/div[3]/input")
CHANNEL_NAME_INPUT = (By.XPATH, "//*[@id='modal-root']/div/dialog/div/div[1]/div/div[1]/span/label/input")
INVITE_USER_INPUT = (By.XPATH, "//*[@id='modal-root']/div/dialog/div/div[1]/div/div[7]/div/div[1]/input")
CREATE_BUTTON = (By.XPATH, "//*[@id='modal-root']/div/dialog/div/div[2]/div/button[2]")
CHANNEL_CREATED = (By.XPATH, "//*[contains(text(),'" + data.channel_name + "')]")
MEMBER_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/div[2]/div/div/main/header/div/div[3]/button[4]")
MEMBER_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/div[2]/div/div/main/header/div/div[3]/button[3]")
ADD_USERS = (By.XPATH, "//*[@id='rocket-chat']/div[2]/div/div/main/div/aside/footer/div/button[2]")
INPUT_FIELD = (By.XPATH, "//input[@placeholder='Choose users']")
INPUT_FIELD = (By.CSS_SELECTOR, "div.rc-scrollbars-view > div > div > div > div.rcx-box> input")
ADD_USERS_BUTTON = (By.XPATH, "//*[@id='rocket-chat']/div[2]/div/div/main/div/aside/footer/button")
MESSAGE = (By.CSS_SELECTOR, ".wrapper>ul>li:last-child>div:nth-child(2)>div:nth-child(2)>span:nth-child(3)")
MESSAGE = (By.CSS_SELECTOR, ".wrapper>ul>li:last-child>div:nth-child(2)>div:nth-child(2)")
def __init__(self, driver):
super().__init__(driver)
def add_new_user(self, new_user, new_username, new_email, new_status, new_bio, new_nickname, new_password):
self.do_click(self.MORE_BUTTON)
self.do_click(self.AVATAR)
self.do_click(self.ADMINISTRATION_BUTTON)
self.do_click(self.USERS_BUTTON)
self.do_click(self.NEW_BUTTON)
......@@ -78,10 +79,10 @@ class CreateDataPage(BasePage):
self.do_send_keys(self.PASSWORD_INPUT, new_password)
self.do_enter(self.PASSWORD_INPUT)
self.do_click(self.ROLES_INPUT)
self.do_click(self.OPTION_USER)
self.do_click(self.PASSWORD_INPUT)
time.sleep(3)
#self.do_click(self.ROLES_INPUT)
#self.do_click(self.OPTION_USER)
#self.do_click(self.PASSWORD_INPUT)
#time.sleep(3)
self.do_click(self.SAVE_BUTTON)
self.driver.refresh()
......@@ -147,4 +148,6 @@ class CreateDataPage(BasePage):
......@@ -8,13 +8,23 @@ data = data_env.get_data()
class DMOptionsPage(BasePage):
VALUE = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(6) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
SOURCE_1 = ".rcx-sidebar-item:nth-child(6)"
OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(6)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
#VALUE = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(6) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
VALUE = (By.CSS_SELECTOR,
"#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(6) > a > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
#SOURCE_1 = ".rcx-sidebar-item:nth-child(6)"
SOURCE_1 = ".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(6)"
#OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(6)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
OPTIONS_BUTTON = (By.CSS_SELECTOR,
".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(6) > a > div > div.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rcx-sidebar-item__menu-wraper > button")
FAVORITE_BUTTON = (By.XPATH, "//*[contains(text(),'Favorite')]")
FAVORITE_ITEM = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(2) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
SOURCE_2 = ".rcx-sidebar-item:nth-child(2)"
FAVORITE_ITEM_OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(2)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
#FAVORITE_ITEM = (By.CSS_SELECTOR, "#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.simplebar-wrapper > div.simplebar-mask > div > div > div > div > a:nth-child(2) > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
FAVORITE_ITEM = (By.CSS_SELECTOR,
"#rocket-chat > aside > div.rooms-list.sidebar--custom-colors > div > div > div > div.rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(2) > a > div > div.rc-box.rcx-box--full.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rc-box.rcx-box--full.rcx-sidebar-item__title")
#SOURCE_2 = ".rcx-sidebar-item:nth-child(2)"
SOURCE_2 = ".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(2)"
#FAVORITE_ITEM_OPTIONS_BUTTON = (By.CSS_SELECTOR, ".rcx-sidebar-item:nth-child(2)>div.rcx-sidebar-item__wrapper>div.rcx-sidebar-item__content>div.rcx-sidebar-item__menu-wraper>button")
FAVORITE_ITEM_OPTIONS_BUTTON = (By.CSS_SELECTOR,
".rc-scrollbars-view > div:nth-child(1) > div > div:nth-child(2) > a > div > div.rcx-sidebar-item__container.rcx-sidebar-item__content.undefined > div.rcx-sidebar-item__menu-wraper > button")
UNFAVORITE_BUTTON = (By.XPATH, "//*[contains(text(),'Unfavorite')]")
HIDE_OPTION = (By.XPATH, "//*[contains(text(),'Hide')]")
......
......@@ -29,11 +29,11 @@ class DiscussionDMPage(BasePage):
self.do_click(self.DISCUSSION_BUTTON)
self.do_click(self.CHANNEL_INPUT)
self.do_send_keys(self.CHANNEL_INPUT, channel_name)
time.sleep(3)
self.do_enter(self.CHANNEL_INPUT)
self.do_click(self.DISCUSSION_INPUT)
self.do_send_keys(self.DISCUSSION_INPUT, discussion_name)
self.do_enter(self.DISCUSSION_INPUT)
self.do_click(self.CHANNEL_USERS_INPUT)
self.do_send_keys(self.CHANNEL_USERS_INPUT, new_user)
......@@ -42,7 +42,6 @@ class DiscussionDMPage(BasePage):
self.do_click(self.DISCUSSION_MESSAGE)
self.do_send_keys(self.DISCUSSION_MESSAGE, discussion_message)
self.do_enter(self.DISCUSSION_MESSAGE)
time.sleep(2)
self.do_click(self.CREATE__DISCUSSION_BUTTON)
......
......@@ -19,7 +19,6 @@ class PostPage(BasePage):
EMOJI_SENT = (By.CSS_SELECTOR, ".wrapper>ul>li:last-child>div>div:last-child>span")
USER = (By.XPATH, "//*[text()[contains(.,'" + data.user + "')]]")
def __init__(self, driver):
super().__init__(driver)
......
Screenshots/Homepage.png

25 KB | W: | H:

Screenshots/Homepage.png

41.1 KB | W: | H:

Screenshots/Homepage.png
Screenshots/Homepage.png
Screenshots/Homepage.png
Screenshots/Homepage.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -5,51 +5,68 @@ from selenium.webdriver.chrome.options import Options as chrome_Options
import os
@pytest.fixture(params=["Chrome", "Firefox", "Safari", "RemoteIE", "RemoteSafari"], scope="class")
@pytest.fixture(params=["RemoteChrome", "RemoteIE", "RemoteSafari"], scope="class")
#@pytest.fixture(params=["Chrome", "Firefox", "Safari"], scope="class")
def init_driver(request):
global driver
"""This checks chrome browser"""
print("------Setup------")
if request.param == "Chrome":
options = chrome_Options()
options.headless = True
prefs = {"profile.default_content_setting_values.notifications": 2}
options.add_experimental_option("prefs", prefs)
driver = webdriver.Chrome(options=options)
"""This checks Firefox browser"""
if request.param == "Firefox":
path = os.getcwd()
options = ff_Options()
options.headless = True
driver = webdriver.Firefox(options=options, service_log_path=path + "/Logs/geckodriver.log")
"""This checks Safari browser"""
if request.param == "Safari":
driver = webdriver.Safari()
# if request.param == "Chrome":
# options = chrome_Options()
# options.headless = False
# prefs = {"profile.default_content_setting_values.notifications": 2}
# options.add_experimental_option("prefs", prefs)
# driver = webdriver.Chrome(options=options)
#
# """This checks Firefox browser"""
# if request.param == "Firefox":
# path = os.getcwd()
# options = ff_Options()
# options.headless = True
# driver = webdriver.Firefox(options=options, service_log_path=path + "/Logs/geckodriver.log")
#
# """This checks Safari browser"""
# if request.param == "Safari":
# driver = webdriver.Safari()
"""This is for BrowserStack IE """
if request.param == "RemoteIE":
userName = os.environ['BROWSERSTACK_USERNAME']
accessKey = os.environ['BROWSERSTACK_ACCESS_KEY']
BROWSERSTACK_URL = 'http://'+userName+':'+accessKey+'@hub-cloud.browserstack.com/wd/hub'
BROWSERSTACK_URL = 'http://rocketchattester1:3qKpZ3j75MbhWztWU1R9@hub-cloud.browserstack.com/wd/hub'
desired_cap = {
'os': 'Windows',
'os_version': '10',
'resolution': '1920x1080',
'browser': 'IE',
'browser_version': '11.0',
'name': "IETesting",
'build': 'BStack Build Number 1',
'browserstack.local': 'true'
}
driver = webdriver.Remote(
command_executor=BROWSERSTACK_URL,
desired_capabilities=desired_cap
)
"""BrowserStack Chrome"""
if request.param == "RemoteChrome":
BROWSERSTACK_URL = 'http://rocketchattester1:3qKpZ3j75MbhWztWU1R9@hub-cloud.browserstack.com/wd/hub'
desired_cap = {
'os_version': '10',
'resolution': '1920x1080',
'browser': 'Chrome',
'browser_version': 'latest',
'os': 'Windows',
'name': 'Chrome Testing', # test name
'build': 'BStack Build Number 1', # CI/CD job or build name
'browserstack.local': 'true'
}
driver = webdriver.Remote(
command_executor=BROWSERSTACK_URL,
desired_capabilities=desired_cap
)
"""BrowserStack Safari"""
if request.param == "RemoteSafari":
userName = os.environ['BROWSERSTACK_USERNAME']
accessKey = os.environ['BROWSERSTACK_ACCESS_KEY']
BROWSERSTACK_URL = 'http://'+userName+':'+accessKey+'@hub-cloud.browserstack.com/wd/hub'
BROWSERSTACK_URL = 'http://rocketchattester1:3qKpZ3j75MbhWztWU1R9@hub-cloud.browserstack.com/wd/hub'
desired_cap = {
'os': 'OS X',
'os_version': 'Catalina',
......@@ -57,7 +74,8 @@ def init_driver(request):
'browser': 'Safari',
'browser_version': '13.1',
'name': "SafariTesting",
'browserstack.local': 'true',
'build': 'BStack Build Number 1',
'browserstack.local': 'true'
}
driver = webdriver.Remote(
command_executor=BROWSERSTACK_URL,
......
......@@ -3,6 +3,7 @@ from Pages.Loginpage import LoginPage
from Tests.test_base import BaseTest
from Config.main import Data
import allure
import pytest
from allure_commons.types import AttachmentType
data_env = Data()
data = data_env.get_data()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment