Created
July 15, 2015 23:52
-
-
Save tdharris/a281adfe06510aba6753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NumberPad | |
{ | |
@FindBy(id = "ISC2C_NumberPad_1") | |
private WebElement num1; | |
@FindBy(id = "ISC2C_NumberPad_2") | |
private WebElement num2; | |
@FindBy(id = "ISC2C_NumberPad_3") | |
private WebElement num3; | |
@FindBy(id = "ISC2C_NumberPad_4") | |
private WebElement num4; | |
@FindBy(id = "ISC2C_NumberPad_5") | |
private WebElement num5; | |
@FindBy(id = "ISC2C_NumberPad_6") | |
private WebElement num6; | |
@FindBy(id = "ISC2C_NumberPad_7") | |
private WebElement num7; | |
@FindBy(id = "ISC2C_NumberPad_8") | |
private WebElement num8; | |
@FindBy(id = "ISC2C_NumberPad_9") | |
private WebElement num9; | |
@FindBy(id = "ISC2C_NumberPad_0") | |
private WebElement num0; | |
@FindBy(id = "ISC2C_NumberPad_*") | |
private WebElement asterisk; | |
@FindBy(id = "ISC2C_NumberPad_#") | |
private WebElement numSign; | |
@FindBy(id = "manual_dial___dp_button___outbound_controls") | |
private WebElement hideNumPad; | |
public NumberPad() | |
{ | |
// Initialize the POM objects. | |
PageFactory.initElements(driver, this); | |
// Make sure the station phone number is visible. | |
sm.waitForVisibility(num1); | |
} | |
public ClickToCall hideNumberPad() | |
{ | |
sm.click(hideNumPad); | |
return ClickToCall.this; | |
} | |
public NumberPad click1() | |
{ | |
sm.click(num1); | |
return this; | |
} | |
public NumberPad click2() | |
{ | |
sm.click(num2); | |
return this; | |
} | |
public NumberPad click3() | |
{ | |
sm.click(num3); | |
return this; | |
} | |
public NumberPad click4() | |
{ | |
sm.click(num4); | |
return this; | |
} | |
public NumberPad click5() | |
{ | |
sm.click(num5); | |
return this; | |
} | |
public NumberPad click6() | |
{ | |
sm.click(num6); | |
return this; | |
} | |
public NumberPad click7() | |
{ | |
sm.click(num7); | |
return this; | |
} | |
public NumberPad click8() | |
{ | |
sm.click(num8); | |
return this; | |
} | |
public NumberPad click9() | |
{ | |
sm.click(num9); | |
return this; | |
} | |
public NumberPad click0() | |
{ | |
sm.click(num0); | |
return this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment