Produced by Araxis Merge on 5/10/2018 8:27:07 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | OSCIF MHED P3 Annie.zip\cms-vet-app-release-v4.0.1@103ac3fb628.zip\automation_phase_3\src\main\java\com\agilex\annie\framework\pages\external | VeteranLogin.java | Wed Mar 21 18:37:29 2018 UTC |
2 | OSCIF MHED P3 Annie.zip\cms-vet-app-release-v4.0.1@103ac3fb628.zip\automation_phase_3\src\main\java\com\agilex\annie\framework\pages\external | VeteranLogin.java | Wed May 9 17:44:21 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 110 |
Changed | 1 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | package co m.agilex.a nnie.frame work.pages .external; | |
2 | ||
3 | import com .agilex.an nie.framew ork.base.A nnieDeploy ment; | |
4 | import com .agilex.an nie.framew ork.base.A nnieWebPag e; | |
5 | import com .agilex.an nie.framew ork.pages. veteran.Me ssages; | |
6 | import com .agilex.co mmon.selen ium.Driver Util; | |
7 | import com .agilex.co mmon.selen ium.WebSit e; | |
8 | ||
9 | public cla ss Veteran Login exte nds AnnieW ebPage { | |
10 | privat e static f inal Strin g PAGE_TIT LE = "Depa rtment of Veterans A ffairs - V eteran Log in Page"; | |
11 | ||
12 | // Log in form el ements | |
13 | private st atic final String FI ELD_USERNA ME
|
|
14 | private st atic final String FI ELD_PASSWO RD
|
|
15 | privat e static f inal Strin g BUTTON_C LEAR = "id =resetLogi n"; | |
16 | privat e static f inal Strin g BUTTON_S IGN_IN = " id=loginBu tton"; | |
17 | public static fi nal String MESSAGE_I NVALID_UID _PWD = | |
18 | "css=htm l.js.audio .ui-mobile body.ui-m obile-view port.ui-ov erlay-c di v.veteran- login.ui-p age.ui-bod y-c.ui-pag e-active d iv div.err or"; | |
19 | ||
20 | public VeteranLo gin(Driver Util drive rutil, Web Site webSi te) { | |
21 | su per(driver util, webS ite); | |
22 | } | |
23 | ||
24 | @Overr ide | |
25 | public String ge tPageTitle () { | |
26 | re turn PAGE_ TITLE; | |
27 | } | |
28 | ||
29 | //-------- ---------- -------Pag e Class Me thods----- ---------- ---------- ---------- | |
30 | ||
31 | public Messages logInAs(St ring usern ame, Strin g password ) { | |
32 | dr iverutil.s etElementV alue(FIELD _USERNAME, username) ; | |
33 | dr iverutil.s etElementV alue(FIELD _PASSWORD, password) ; | |
34 | dr iverutil.c lick(BUTTO N_SIGN_IN) ; | |
35 | if (driveruti l.doesElem entExist(M ESSAGE_INV ALID_UID_P WD)) { | |
36 | driverut il.setElem entValue(F IELD_USERN AME, usern ame); | |
37 | driverut il.setElem entValue(F IELD_PASSW ORD, passw ord); | |
38 | driverut il.click(B UTTON_SIGN _IN); | |
39 | }e lse if(dri verutil.ge tCurrentUR L().contai ns("ssoepr oxy/vetera n/authoriz e?response _type=code &state=ann ievet")){ | |
40 | AnnieDep loyment de ployment = new Annie Deployment (); | |
41 | driverut il.open(de ployment.u rlAnnieVet eranApp); | |
42 | } | |
43 | re turn (Mess ages) webS ite.setCur rentPage(M essages.cl ass); | |
44 | } | |
45 | ||
46 | public void wait ForLoginFo rm() { | |
47 | dr iverutil.w aitForVisi bleElement (FIELD_USE RNAME, def aultTimeOu tSeconds); | |
48 | } | |
49 | ||
50 | public void clic kClearButt on() { | |
51 | dr iverutil.c lick(BUTTO N_CLEAR); | |
52 | } | |
53 | ||
54 | //-------- ---------- -------Int ernal Help er Methods ---------- ---------- ---------- | |
55 | ||
56 | ||
57 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.