-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebdriver.txt
More file actions
55 lines (29 loc) · 770 Bytes
/
webdriver.txt
File metadata and controls
55 lines (29 loc) · 770 Bytes
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
this.driver = _driver;
private const string recordArrival = "MIL";
public void FillingInFlightData()
{
arrival.SendKeys(recordArrival);
arrivalDate.Click();
arrivalMonth.Click();
arrivalDay.Click();
}
public MainPage(WebDriver driver) {
if (!driver.getCurrentUrl().contains(URL_MATCH)) {
throw new IllegalStateException("This is not the page you are expected");
}
PageFactory.initElements(driver, this);
this.driver = driver;
}
public void chooseFlightDirection(){
flyFromField.clear();
flyFromField.sendKeys("Warsaw");
}
public void initBrowser()
public void ClickDraftLink(){
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
draft_link.click();
}