当前位置: 首页>>代码示例>>Python>>正文


Python WebdriverUtilities.WebdriverUtilities类代码示例

本文整理汇总了Python中helperRecip.WebdriverUtilities.WebdriverUtilities的典型用法代码示例。如果您正苦于以下问题:Python WebdriverUtilities类的具体用法?Python WebdriverUtilities怎么用?Python WebdriverUtilities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了WebdriverUtilities类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testLogin

 def testLogin(self):
     self.testname="testLogin"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     do = Helpers()
     do.setUtils(util)
     do.Login()
     self.assertTrue(util.isElementPresent(element.dashboard_title), "no dashboard page found")
开发者ID:bmomberger-reciprocity,项目名称:ggrc-test,代码行数:10,代码来源:TestLogin.py

示例2: testReindex

 def testReindex(self):
     self.testname="deleteObject"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     do = Helpers()
     do.setUtils(util)
     do.login()
     util.driver.execute_script(REINDEX_SCRIPT)
     time.sleep(90)
开发者ID:dtzinov,项目名称:ggrc-test,代码行数:10,代码来源:Reindex.py

示例3: testRegulationCreate

 def testRegulationCreate(self):
     self.testname="testRegulationCreate"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     do = Helpers()
     do.setUtils(util)
     do.login()
     last_created_object_link =do.createObject("Regulation")
     do.navigateToObjectAndOpenObjectEditWindow("Regulation",last_created_object_link)
     do.deleteObject()
开发者ID:SilasX,项目名称:ggrc-test,代码行数:12,代码来源:TestRegulationCreate.py

示例4: testFacilityCreate

 def testFacilityCreate(self):
     self.testname="testFacilityCreate"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     do = Helpers()
     do.setUtils(util)
     do.Login()
     last_created_object_link =do.CreateObject("Facility")
     do.NavigateToObjectAndOpenObjectEditWindow("Facility",last_created_object_link)
     do.deleteObject()
开发者ID:bmomberger-reciprocity,项目名称:ggrc-test,代码行数:12,代码来源:TestFacilityCreate.py

示例5: testSystemCreate

 def testSystemCreate(self):
     self.testname="testSystemCreate"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     do = Helpers()
     do.setUtils(util)
     do.Login()
     last_created_object_link =do.CreateObject("System")
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip()
     do.NavigateToObjectAndOpenObjectEditWindow("System",last_created_object_link)
     do.deleteObject()
开发者ID:bmomberger-reciprocity,项目名称:ggrc-test,代码行数:12,代码来源:TestSystemCreate.py

示例6: testContractMapLHN

 def testContractMapLHN(self):
     self.testname="TestContractMapLHN"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Contract")
     do.login()
     contract_name = "Contract for Auto Mapping from LHN"  +do.getTimeId()
     last_created_object_link = do.createObject("Contract", contract_name)
     do.navigateToObjectWithSearch(contract_name, "Contract")
     for obj in grcobject.contract_map_to_lhn: 
         do.mapAObjectLHN(obj)
开发者ID:dtzinov,项目名称:ggrc-test,代码行数:15,代码来源:TestContractMapLHN.py

示例7: testFacilityMapWidget

 def testFacilityMapWidget(self):
     self.testname="TestFacilityMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Facility")
     do.login()
     facility_name = "Facility for Auto Mapping from Widget"  +do.getTimeId()
     last_created_object_link = do.createObject("Facility",facility_name)
     do.navigateToObjectWithSearch(facility_name, "Facility")
     for obj in grcobject.facility_map_to_widget: 
         do.mapAObjectWidget(obj)
开发者ID:dtzinov,项目名称:ggrc-test,代码行数:15,代码来源:TestFacilityMapWidget.py

示例8: testProgramMapWidget

 def testProgramMapWidget(self):
     self.testname="TestProgramMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Program")
     do.login()
     program_name = "Program for Auto Mapping from Widget" + do.getTimeId()
     last_created_object_link = do.createObject("Program", program_name)
     do.navigateToObjectWithSearch(program_name, "Program")
     for obj in grcobject.program_map_to_widget: 
         do.mapAObjectWidget(obj, True, ("Control"))
开发者ID:dtzinov,项目名称:ggrc-test,代码行数:15,代码来源:TestProgramMapWidget.py

示例9: testOrgGroupMapWidget

 def testOrgGroupMapWidget(self):
     self.testname="TestOrgGroupMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "OrgGroup")
     do.login()
     org_group_name = "OrgGroup for Auto Mapping from Widget"  +do.getTimeId()
     last_created_object_link = do.createObject("OrgGroup",org_group_name)
     do.navigateToObjectWithSearch(org_group_name, "OrgGroup")
     for obj in grcobject.org_group_map_to_widget: 
         do.mapAObjectWidget(obj)
开发者ID:dtzinov,项目名称:ggrc-test,代码行数:15,代码来源:TestOrgGroupMapWidget.py

示例10: testPolicyMapWidget

 def testPolicyMapWidget(self):
     self.testname="TestRPolicyMapWidget"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util)
     do.login()
     program_name = "Policy for Auto Mapping from Widget"  +do.getTimeId()
     last_created_object_link = do.createObject("Policy", program_name)
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() 
     do.navigateToObject("Policy",last_created_object_link)
     for obj in grcobject.policy_map_to_widget: 
         do.mapAObjectWidget(obj)
开发者ID:SilasX,项目名称:ggrc-test,代码行数:16,代码来源:TestPolicyMapWidget.py

示例11: testMarketMapLHN

 def testMarketMapLHN(self):
     self.testname="TestMarketMapLHN"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util, "Market")
     do.login()
     system_name = "Market for Auto Mapping from LHN"  +do.getTimeId()
     last_created_object_link = do.createObject("Market", system_name)
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() 
     do.navigateToObjectWithSearch(system_name, "Market")
     for obj in grcobject.market_map_to_lhn: 
         do.mapAObjectLHN(obj)
开发者ID:dtzinov,项目名称:ggrc-test,代码行数:16,代码来源:TestMarketMapLHN.py

示例12: testControlEdit

 def testControlEdit(self):
     self.testname="testControlEdit"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     do = Helpers()
     grcobject = GRCObject()
     do.setUtils(util)
     do.Login()
     last_created_object_link = do.CreateObject("Control")
     object_name = util.getTextFromXpathString(last_created_object_link)
     do.NavigateToObjectAndOpenObjectEditWindow("Control",last_created_object_link)
     do.PopulateObjectInEditWindow( object_name , grcobject.control_elements, grcobject.control_values)
     do.ShowHiddenValues()
     do.verifyObjectValues( grcobject.control_elements, grcobject.control_values)
     do.deleteObject()
开发者ID:bmomberger-reciprocity,项目名称:ggrc-test,代码行数:17,代码来源:TestControlEdit.py

示例13: testRiskCreate

 def testRiskCreate(self):
     self.testname="testRiskCreate"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     do = Helpers()
     do.setUtils(util)
     do.Login()
     self.assertTrue(util.isElementPresent(element.dashboard_title), "no dashboard page found")
     do.OpenCreateNewRiskWindow(element.risk_widget_object_add_button)
     random_number= do.GetTimeId()
     risk_name = "risk-auto-test"+random_number
     do.PopulateNewObjectData(risk_name)
     do.SaveObjectData()
     do.WaitForLeftNavToLoad()
     do.VerifyObjectIsCreated("risks", risk_name)
开发者ID:bmomberger-reciprocity,项目名称:ggrc-test,代码行数:17,代码来源:TestRiskCreate.py

示例14: testSystemsMapLHN

 def testSystemsMapLHN(self):
     self.testname="TestSystemMapLHN"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     grcobject = GRCObject()
     do = Helpers()
     do.setUtils(util)
     do.login()
     system_name = "System for Auto Mapping from LHN"  +do.getTimeId()
     last_created_object_link = do.createObject("System", system_name)
     #object_name = str(util.getTextFromXpathString(last_created_object_link)).strip() 
     do.navigateToObject("System",last_created_object_link)
     for obj in grcobject.system_map_to_lhn: 
         do.mapAObjectLHN(obj)
         util.refreshPage()
开发者ID:SilasX,项目名称:ggrc-test,代码行数:17,代码来源:TestSystemsMapLHN.py

示例15: testProjectEdit

 def testProjectEdit(self):
     self.testname="testProjectEdit"
     self.setup()
     util = WebdriverUtilities()
     util.setDriver(self.driver)
     element = Elements()
     do = Helpers()
     grcobject = GRCObject()
     do.setUtils(util)
     do.login()
     last_created_object_link = do.createObject("Project")
     object_name = str(util.getTextFromXpathString(last_created_object_link)).strip()
     do.navigateToObjectAndOpenObjectEditWindow("Project",last_created_object_link)
     do.populateObjectInEditWindow( object_name , grcobject.project_elements, grcobject.project_values)
     do.openObjectEditWindow()
     do.showHiddenValues()
     do.verifyObjectValues(grcobject.project_elements, grcobject.project_values)
     do.deleteObject()
开发者ID:SilasX,项目名称:ggrc-test,代码行数:18,代码来源:TestProjectEdit.py


注:本文中的helperRecip.WebdriverUtilities.WebdriverUtilities类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。