C# 클래스 Machete.Test.Selenium.View.sharedUI

파일 보기 프로젝트 열기: SavageLearning/Machete 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
_d IWebDriver
maxwait int

공개 메소드들

메소드 설명
GetID ( string s ) : string
GetOptionIndex ( By by ) : int
GetOptionText ( By by ) : string
GetOptionText ( IWebElement elem ) : string
GetOptionValue ( By by ) : string
RandomString ( int size ) : string
ReplaceElementText ( By by, string text ) : bool
SelectOption ( By by, string opttext ) : bool
SelectOptionByIndex ( By by, int index ) : bool
SelectOptionByValue ( By by, string optvalue ) : bool
SolutionDirectory ( ) : string
WaitAndDoubleClick ( By by ) : bool
WaitForElement ( By by ) : IWebElement
WaitForElementDisplayed ( By by ) : IWebElement
WaitForElementExists ( By by ) : bool
WaitForElementValue ( By by, string value ) : bool

Wait for both an element to exist and for the specified value to be present.

WaitForText ( String what ) : bool
WaitForText ( String what, int waitfor ) : bool
WaitThenClickElement ( By by ) : bool
activityCreate ( Activity _act ) : bool
activityMenuLink ( ) : bool
activitySignIn ( string idPrefix, int dwccardnum ) : bool
activitySignInIsSanctioned ( ) : bool
activitySignInValidate ( string idPrefix, int dwccardnum, int rowcount ) : bool
activityValidate ( Activity _act ) : bool
confirmWorkerDeleted ( ) : bool
createSomeWorkers ( int numWorkers, DbSet workers ) : bool
elementExists ( By by ) : bool
employerCreate ( Employer _emp ) : bool

employerDelete ( Employer _emp ) : bool
employerValidate ( Employer _emp ) : bool

eventCreate ( Event _ev ) : bool
eventValidate ( Event &_ev ) : bool
getSelectedTabRecordID ( string cssClass ) : int
gotoMachete ( ) : bool
login ( ) : bool

logout ( ) : bool
nextAvailableDwccardnum ( MacheteContext DB ) : int
personCreate ( Person _per ) : bool
personValidate ( Person _per ) : bool
refreshCache ( ) : bool
sharedUI ( IWebDriver driver, string url ) : System
workAssignmentActivate ( Employer _emp, WorkOrder _wo, WorkAssignment _wa ) : bool

Activate work order. Assumes start at WA ListTab.

workAssignmentCreate ( Employer emp, WorkOrder wo, WorkAssignment wa ) : bool

Create new assignment. Last action executes Create Button, returning to List Tab.

workAssignmentValidate ( Employer _emp, WorkOrder _wo, WorkAssignment _wa ) : bool
workOrderCreate ( Employer _emp, WorkOrder _wo ) : bool
workOrderValidate ( WorkOrder _wo ) : bool
workerCreate ( Worker _wkr, string imagepath ) : bool
workerDelete ( Worker _wkr ) : bool
workerSanction ( Worker _wkr ) : bool
workerValidate ( Worker _wkr ) : bool

비공개 메소드들

메소드 설명
IsElementPresent ( By by ) : IWebElement

Returns element or null if not found. Catches Selenium exceptions.

IsElementValuePresent ( By by, string value ) : bool

Find element by the given By object and return true if the value matches the attribute value.

isTextPresent ( String what, IWebDriver driver ) : bool

메소드 상세

GetID() 공개 정적인 메소드

public static GetID ( string s ) : string
s string
리턴 string

GetOptionIndex() 공개 메소드

public GetOptionIndex ( By by ) : int
by OpenQA.Selenium.By
리턴 int

GetOptionText() 공개 메소드

public GetOptionText ( By by ) : string
by OpenQA.Selenium.By
리턴 string

GetOptionText() 공개 메소드

public GetOptionText ( IWebElement elem ) : string
elem IWebElement
리턴 string

GetOptionValue() 공개 메소드

public GetOptionValue ( By by ) : string
by OpenQA.Selenium.By
리턴 string

RandomString() 공개 메소드

public RandomString ( int size ) : string
size int
리턴 string

ReplaceElementText() 공개 메소드

public ReplaceElementText ( By by, string text ) : bool
by OpenQA.Selenium.By
text string
리턴 bool

SelectOption() 공개 메소드

public SelectOption ( By by, string opttext ) : bool
by OpenQA.Selenium.By
opttext string
리턴 bool

SelectOptionByIndex() 공개 메소드

public SelectOptionByIndex ( By by, int index ) : bool
by OpenQA.Selenium.By
index int
리턴 bool

SelectOptionByValue() 공개 메소드

public SelectOptionByValue ( By by, string optvalue ) : bool
by OpenQA.Selenium.By
optvalue string
리턴 bool

SolutionDirectory() 공개 정적인 메소드

public static SolutionDirectory ( ) : string
리턴 string

WaitAndDoubleClick() 공개 메소드

public WaitAndDoubleClick ( By by ) : bool
by OpenQA.Selenium.By
리턴 bool

WaitForElement() 공개 메소드

public WaitForElement ( By by ) : IWebElement
by OpenQA.Selenium.By
리턴 IWebElement

WaitForElementDisplayed() 공개 메소드

public WaitForElementDisplayed ( By by ) : IWebElement
by OpenQA.Selenium.By
리턴 IWebElement

WaitForElementExists() 공개 메소드

public WaitForElementExists ( By by ) : bool
by OpenQA.Selenium.By
리턴 bool

WaitForElementValue() 공개 메소드

Wait for both an element to exist and for the specified value to be present.
public WaitForElementValue ( By by, string value ) : bool
by OpenQA.Selenium.By
value string
리턴 bool

WaitForText() 공개 메소드

public WaitForText ( String what ) : bool
what String
리턴 bool

WaitForText() 공개 메소드

public WaitForText ( String what, int waitfor ) : bool
what String
waitfor int
리턴 bool

WaitThenClickElement() 공개 메소드

public WaitThenClickElement ( By by ) : bool
by OpenQA.Selenium.By
리턴 bool

activityCreate() 공개 메소드

public activityCreate ( Activity _act ) : bool
_act Machete.Domain.Activity
리턴 bool

activityMenuLink() 공개 메소드

public activityMenuLink ( ) : bool
리턴 bool

activitySignIn() 공개 메소드

public activitySignIn ( string idPrefix, int dwccardnum ) : bool
idPrefix string
dwccardnum int
리턴 bool

activitySignInIsSanctioned() 공개 메소드

public activitySignInIsSanctioned ( ) : bool
리턴 bool

activitySignInValidate() 공개 메소드

public activitySignInValidate ( string idPrefix, int dwccardnum, int rowcount ) : bool
idPrefix string
dwccardnum int
rowcount int
리턴 bool

activityValidate() 공개 메소드

public activityValidate ( Activity _act ) : bool
_act Machete.Domain.Activity
리턴 bool

confirmWorkerDeleted() 공개 메소드

public confirmWorkerDeleted ( ) : bool
리턴 bool

createSomeWorkers() 공개 메소드

public createSomeWorkers ( int numWorkers, DbSet workers ) : bool
numWorkers int
workers DbSet
리턴 bool

elementExists() 공개 메소드

public elementExists ( By by ) : bool
by OpenQA.Selenium.By
리턴 bool

employerCreate() 공개 메소드

public employerCreate ( Employer _emp ) : bool
_emp Machete.Domain.Employer
리턴 bool

employerDelete() 공개 메소드

public employerDelete ( Employer _emp ) : bool
_emp Machete.Domain.Employer
리턴 bool

employerValidate() 공개 메소드

public employerValidate ( Employer _emp ) : bool
_emp Machete.Domain.Employer
리턴 bool

eventCreate() 공개 메소드

public eventCreate ( Event _ev ) : bool
_ev Machete.Domain.Event
리턴 bool

eventValidate() 공개 메소드

public eventValidate ( Event &_ev ) : bool
_ev Machete.Domain.Event
리턴 bool

getSelectedTabRecordID() 공개 메소드

public getSelectedTabRecordID ( string cssClass ) : int
cssClass string
리턴 int

gotoMachete() 공개 메소드

public gotoMachete ( ) : bool
리턴 bool

login() 공개 메소드

public login ( ) : bool
리턴 bool

logout() 공개 메소드

public logout ( ) : bool
리턴 bool

nextAvailableDwccardnum() 공개 정적인 메소드

public static nextAvailableDwccardnum ( MacheteContext DB ) : int
DB MacheteContext
리턴 int

personCreate() 공개 메소드

public personCreate ( Person _per ) : bool
_per Person
리턴 bool

personValidate() 공개 메소드

public personValidate ( Person _per ) : bool
_per Person
리턴 bool

refreshCache() 공개 메소드

public refreshCache ( ) : bool
리턴 bool

sharedUI() 공개 메소드

public sharedUI ( IWebDriver driver, string url ) : System
driver IWebDriver
url string
리턴 System

workAssignmentActivate() 공개 메소드

Activate work order. Assumes start at WA ListTab.
public workAssignmentActivate ( Employer _emp, WorkOrder _wo, WorkAssignment _wa ) : bool
_emp Employer
_wo WorkOrder
_wa WorkAssignment
리턴 bool

workAssignmentCreate() 공개 메소드

Create new assignment. Last action executes Create Button, returning to List Tab.
public workAssignmentCreate ( Employer emp, WorkOrder wo, WorkAssignment wa ) : bool
emp Employer
wo WorkOrder
wa WorkAssignment
리턴 bool

workAssignmentValidate() 공개 메소드

public workAssignmentValidate ( Employer _emp, WorkOrder _wo, WorkAssignment _wa ) : bool
_emp Employer
_wo WorkOrder
_wa WorkAssignment
리턴 bool

workOrderCreate() 공개 메소드

public workOrderCreate ( Employer _emp, WorkOrder _wo ) : bool
_emp Employer
_wo WorkOrder
리턴 bool

workOrderValidate() 공개 메소드

public workOrderValidate ( WorkOrder _wo ) : bool
_wo WorkOrder
리턴 bool

workerCreate() 공개 메소드

public workerCreate ( Worker _wkr, string imagepath ) : bool
_wkr Worker
imagepath string
리턴 bool

workerDelete() 공개 메소드

public workerDelete ( Worker _wkr ) : bool
_wkr Worker
리턴 bool

workerSanction() 공개 메소드

public workerSanction ( Worker _wkr ) : bool
_wkr Worker
리턴 bool

workerValidate() 공개 메소드

public workerValidate ( Worker _wkr ) : bool
_wkr Worker
리턴 bool

프로퍼티 상세

_d 공개적으로 프로퍼티

public IWebDriver _d
리턴 IWebDriver

maxwait 공개적으로 프로퍼티

public int maxwait
리턴 int