from Lib.common.ConfigLoader import ConfigLoader from Lib.common.DriverData import DriverData from Lib.common.Log import Log from Lib.temasekproperties.HomePage import HomePage from Lib.temasekproperties.Listings import Listings from Lib.temasekproperties.LogIn import LogIn from Lib.temasekproperties.Resources import Resources cl = ConfigLoader() createDriver = DriverData() driver = createDriver.get_driver() driver.get("https://temasekproperties.com/wp-login.php") log = Log(driver) li = LogIn(driver) li.log_in("TestBS", "test123") hp = HomePage(driver) hp.go_to_resources_booking() #hp.go_to_listings() rb = Resources(driver) #l.search_for("Derbyshire") rb.book("Central - Newton", "Derbyshire #22-01") bookedFor = rb.booking_steps() hp.go_to_resources_booked() rb.check_if_exist("6 Derbyshire #22-01", bookedFor)
from Lib.SgPano.CreateEditTourBasicInformation import BasicInformationTour from Lib.SgPano.CreateEditTourUploadScenes import UploadScenesTour from Lib.SgPano.CreateEditTourUploadedScenes import UploadedScenesTour from Lib.SgPano.Dashboard import Dashboard from Lib.SgPano.HomePage import HomePage from Lib.SgPano.LogIn import LogIn from Lib.common.ConfigLoader import ConfigLoader from Lib.common.DriverData import DriverData from Lib.common.ScenesGetData import parse_to_scenes cl = ConfigLoader() ##upload scenes createDriver1 = DriverData(driver="Firefox") driverTemp = createDriver1.get_driver() driverTemp.get("https://sgpano.com/") #log = Log(createDriver1) hp1 = HomePage(driverTemp) hp1.go_to_log_in() lp1 = LogIn(driverTemp) lp1.log_in(cl.get("usernameTrial"), cl.get("passwordTrial")) db1 = Dashboard(driverTemp) db1.create_new_tour() bit1 = BasicInformationTour(driverTemp) bit1.set_basic_info(title=cl.get("tourName"), address=cl.get("tourAddress"), description=cl.get("tourDescription"), publicAccess=False)