def Setup(): driver = BrowserFunctions.BrowserLoad() mpf = MyProfilePage() mpf.Redirect(driver) yield driver driver.close()
def Setup(): driver = BrowserFunctions.BrowserLoad() usp = SettingsPage() usp.Redirect(driver) yield driver driver.close()
def Setup(): driver=BrowserFunctions.BrowserLoad() pm= PMPage() pm.Redirect(driver) yield driver driver.close()
def Setup(): driver = BrowserFunctions.BrowserLoad() mdp = ModerationPage() mdp.Redirect(driver) yield driver driver.close()
def Setup(): driver = BrowserFunctions.BrowserLoad() tp = ThreadsPage() tp.Redirect(driver) yield driver driver.close()
def Setup(): driver = BrowserFunctions.BrowserLoad() cpp = CreatePostPage() cpp.Redirect(driver) yield driver driver.close()
def Setup(): driver = BrowserFunctions.BrowserLoad() mp = MainPage() mp.Redirect(driver) mp.GetLoginFormButton(driver).click() yield driver driver.close()
def Setup(): driver = BrowserFunctions.BrowserLoad() cmd = CreateCommunityPage() cmd.Redirect(driver) yield driver driver.close()
from GeneralUtilities import BrowserFunctions import Pages from Pages.RegisterPage import RegisterPage from Pages.MainPage import MainPage from Pages.SettingsPage import UserSettingsPage from Pages.AccountSettingsPage import AccountSettingsPage from Pages.ProfileSettingsPage import ProfileSettingsPage from selenium.webdriver import ActionChains import time from selenium.webdriver.common.keys import Keys driver=BrowserFunctions.BrowserLoad() rp=RegisterPage(driver) rp.emailfield.send_keys('is it working ??') rp.emailfield.clear() rp.usernamefield.send_keys('goodddaaaamnnn') rp.passwordfield.send_keys('assdfgfbdfgsd') rp.registerbutton.click() print(driver.current_url)
from GeneralUtilities import BrowserFunctions driver=BrowserFunctions.BrowserLoad('fire') driver1=BrowserFunctions.BrowserLoad('f') driver2=BrowserFunctions.BrowserLoad('adfsgfdh') driver.close() driver1.close() driver2.close()
from Pages.RegisterPage import RegisterPage from Pages.MainPage import MainPage import time from selenium.webdriver.common.keys import Keys from GeneralUtilities import BrowserFunctions driver = BrowserFunctions.BrowserLoad('chrome') rp = RegisterPage(driver) rp.emailfield.send_keys('is it working ??') rp.emailfield.clear() rp.usernamefield.send_keys('goodddaaaamnnn') rp.passwordfield.send_keys('assdfgfbdfgsd') rp.registerbutton.click() mp = MainPage(driver) mp.listingsdrop.click() mp.createpostbutton.click() # mp.pmbutton.click(mp.logobutton.click() mp.notificationsbutton.click() mp.searchbar.send_keys('ok ?') time.sleep(3) mp.searchbar.clear() mp.logobutton.click() print(str(mp.IsOn())) mp.searchbar.send_keys(Keys.ENTER) mp.driver.close()