-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec3.js
58 lines (57 loc) · 2.8 KB
/
spec3.js
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
describe('CRM authorizer', function() {
it('CRM Autorizer', function() {
//Browser
//Browser
browser.get('');
//Maximize Windows
browser.driver.manage().window().maximize();
//Login Credentials
browser.manage().timeouts().implicitlyWait(40000);
element(by.id('clientid')).sendKeys('001');
browser.manage().timeouts().implicitlyWait(40000);
element(by.id('username')).sendKeys('05');
browser.manage().timeouts().implicitlyWait(40000);
element(by.id('password')).sendKeys('123');
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath('//button[. = "Log In"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
//Navigation to CRM
browser.manage().timeouts().implicitlyWait(40000);
browser.sleep(3000);
//Navigation to CRM
element(by.xpath('//span[. = "CRM"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath("//SPAN[@class='ng-tns-c4-15'][text()='Workflow Approval']/self::SPAN")).click();
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath("//SPAN[@class='ng-tns-c4-18'][text()='Individual Customer']/self::SPAN")).click();
//element(by.xpath('//span[text()= "Customer Registration"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath("(//INPUT[@pinputtext=''])[2]/../..")).click();
browser.actions().sendKeys(protractor.Key.NUMPAD0).perform();
browser.actions().sendKeys(protractor.Key.NUMPAD0).perform();
browser.actions().sendKeys(protractor.Key.NUMPAD6).perform();
browser.actions().sendKeys(protractor.Key.ENTER).perform();
element.all(by.className('ui-button-text ui-clickable')).first().click();
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);');
browser.manage().timeouts().implicitlyWait(40000);
browser.sleep(2000);
element(by.xpath('//button[. = "Next"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);');
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath('//button[. = "Next"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);');
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath('//button[. = "Next"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);');
browser.manage().timeouts().implicitlyWait(40000);
element(by.xpath('//button[. = "Next"]')).click();
browser.manage().timeouts().implicitlyWait(40000);
browser.executeScript('window.scrollTo(0, document.body.scrollHeight);');
element(by.xpath('//button[. = "Accept"]')).click();
browser.sleep(5000);
//browser.sleep(30000);
});
});