- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWrappers.java
More file actions
Latest commit
105 lines (82 loc) · 2.01 KB
/
Copy pathWrappers.java
File metadata and controls
105 lines (82 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
packagebase;
importorg.openqa.selenium.WebElement;
importjava.util.List;
publicinterfaceWrappers {
/**
* click WebElement
*
* @param element
*/
publicvoidclickButton(WebElementelement);
/**
* Scroll to a WebElement and click another WebElement
*
* @param scrollToElement
* @param clickElement
*/
publicvoidclickButton(WebElementscrollToElement, WebElementclickElement);
/***
* Click Element - Without scroll to the element
*
* @param element Webelement
* @throws Exception
*/
voidclickButtonWithOutScroll(WebElementelement);
/***
* enter text
*
* @param element
*/
voidenterText(WebElementelement, String... textValue);
/***
* get text of element
*
* @param element - WebElement
* @return - String - !!!element.getText()
*/
StringgetText(WebElementelement);
/***
* Mouse over to the element Web
*
* @param element
*/
voidmouseOver(WebElementelement);
/***
* Quit all openned Tabs
*/
voidquitBrowser();
/***
* Close the current window
*/
voidcloseBrowser();
/***
* Switch to Parent Window ---using windowsHandles
*/
voidswitchToParentWindow();
/***
* Switch to Last Window ---- using windowsHandles
*/
voidswitchToLastWindow();
/***
* Method isElementDisplayed is used to verify element isDiplayed
*
* @param elements- List of Elements
* @return - true or false
*/
booleanisElementDisplayed(List<WebElement> elements);
/*
* gets the title of the current page
*/
StringgetPageTitle();
/****
* Dropdown Select Methods
*/
interfaceSelectDropDown {
voidselectByIndex(WebElementelement, intindex);
voidSelectByValue(WebElementelement, Stringvalue);
voidSelectByVisibleText(WebElementelement, Stringtext);
voidclickButtonWithOutScroll(WebElementelement);
voidclickButton(WebElementscrollToElement, WebElementclickElement);
voidclickButton(WebElementelement);
}
}