Advertisement
Guest User

anesthesia

a guest
Jan 25th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.38 KB | None | 0 0
  1. allergy.po
  2.  
  3. var commonHelper = require('./../../../helpers/common.helper.js');
  4.  
  5.  
  6. var PreopAllergyPage = function () {
  7.  
  8. //--------------------------------------------------------------------------
  9. // Elements
  10. //-------------------------------------------------------------------------
  11.  
  12. this.parentSection = $('#allergies.content');
  13.  
  14. this.allergySection = $$('[ng-if="preOp.showAllergies"]').get(0);
  15.  
  16. this.selectFirstResult = $('[ng-bind-html="item.text | highlight: $select.search"]');
  17.  
  18. this.btnDeleteAllergy = $('[ng-click="allergies.deleteAllergy(a)"]');
  19.  
  20. //--------------------------------------------------------------------------
  21. // Functions
  22. //--------------------------------------------------------------------------
  23.  
  24. this.getCheckbox = function(value) {
  25. return element(by.cssContainingText("label", value))
  26. };
  27.  
  28. this.getCheckboxInput = function(section, value) {
  29. return this.getCheckbox(section, value).$('input');
  30. };
  31.  
  32. this.eleAllergyField = function () {
  33. return $('[class="panel panel-primary"]:nth-of-type(1)')
  34. };
  35.  
  36. this.fillAllergen = function (value) {
  37. this.eleAllergyField().$('[ng-click="$select.activate()"]').click();
  38. this.eleAllergyField().$('[ng-model="$select.search"]').sendKeys(value);
  39. this.selectFirstResult.click();
  40. commonHelper.waitUntilElementVisible(this.btnDeleteAllergy)
  41. };
  42.  
  43. this.fillReaction = function (name) {
  44. this.eleAllergyField().$('[ng-focus="detectSelect()"]').click();
  45. $('[label="' + name + '"]').click();
  46. };
  47.  
  48. this.fillSeverity = function (name) {
  49. this.eleAllergyField().$('[label="-Choose Severity-"]').click();
  50. $('[label="' + name + '"]').click();
  51. };
  52. };
  53.  
  54. module.exports = PreopAllergyPage;
  55.  
  56. -------------------------------------------------------
  57. day_of_sx.po
  58.  
  59. var PreopDayOfSxPage = function () {
  60.  
  61. //--------------------------------------------------------------------------
  62. // Elements
  63. //-------------------------------------------------------------------------
  64.  
  65. this.daySection = $('[ng-if="!p.isFutureDate(p.Data.Proc.SurgeryDate)"]');
  66.  
  67. //--------------------------------------------------------------------------
  68. // Functions
  69. //--------------------------------------------------------------------------
  70.  
  71. this.getCheckbox = function(value) {
  72. return this.daySection.element(by.cssContainingText("label", value))
  73. };
  74.  
  75. this.getCheckboxInput = function(section, value) {
  76. return this.getCheckbox(section, value).$('input');
  77. };
  78.  
  79. this.clickCheckbox = function( value) {
  80. return this.getCheckbox( value).click();
  81. };
  82.  
  83. this.txtNotes = function() {
  84. return this.airwaySection.$('textarea');
  85. };
  86. };
  87.  
  88. module.exports = PreopDayOfSxPage;
  89.  
  90. -----------------------------------------------------------
  91. labs.po
  92.  
  93. var commonHelper = require('./../../../helpers/common.helper.js');
  94.  
  95. var PreopLabsPage = function () {
  96.  
  97. //--------------------------------------------------------------------------
  98. // Elements
  99. //-------------------------------------------------------------------------
  100.  
  101. this.btnPlus = $('[ng-click="addLab()"]');
  102.  
  103. this.btnDone = $('[ng-click="closeLabs()"]');
  104.  
  105. //--------------------------------------------------------------------------
  106. // Functions
  107. //--------------------------------------------------------------------------
  108.  
  109. this.getCheckbox = function(value) {
  110. return element(by.cssContainingText("label", value))
  111. };
  112.  
  113. this.getCheckboxInput = function(section, value) {
  114. return this.getCheckbox(section, value).$('input');
  115. };
  116.  
  117. this.clickCheckbox = function(value) {
  118. return this.getCheckbox(value).click();
  119. };
  120.  
  121. this.clickGraphCell = function(name) {
  122. $('.' + name).click();
  123. };
  124.  
  125. this.clickDone = function() {
  126. this.btnDone.click();
  127. commonHelper.waitUntilElementIsNotPresent(this.btnDone);
  128. };
  129. };
  130.  
  131. module.exports = PreopLabsPage;
  132.  
  133. -------------------------------------------------------
  134. med_sh.po
  135.  
  136. var PreopMedHxPage = function () {
  137.  
  138. //--------------------------------------------------------------------------
  139. // Elements
  140. //-------------------------------------------------------------------------
  141.  
  142. this.historySection = element.all(by.id('pastMedicalHistory')).get(0);
  143.  
  144. //--------------------------------------------------------------------------
  145. // Functions
  146. //--------------------------------------------------------------------------
  147.  
  148. this.getCheckbox = function(value) {
  149. return element(by.cssContainingText("[ng-repeat*='hi in HealthIssuesCol'] label", value))
  150. };
  151.  
  152. this.getCheckboxInput = function(section, value) {
  153. return this.getCheckbox(section, value).$('input');
  154. };
  155.  
  156. this.clickCheckbox = function( value) {
  157. this.getCheckbox(value).click();
  158. };
  159.  
  160. this.txtNotes = function() {
  161. return this.historySection.$('textarea');
  162. };
  163. };
  164.  
  165. module.exports = PreopMedHxPage;
  166.  
  167. ----------------------------------------------------
  168. pages.po
  169.  
  170. var bottlejs = require('bottlejs').pop('test');
  171.  
  172. bottlejs.factory('PageObject', function () {
  173. return {
  174. getSignInPage: function () {
  175. var signInPage = require('./sign_in/sign_in.po.js');
  176. return new signInPage();
  177. },
  178. getPatientListPage: function () {
  179. var patientListPage = require('./patient_list/patient_list.po.js');
  180. return new patientListPage();
  181. },
  182. getPatientPage: function () {
  183. var patientPage = require('./patient/patient.po.js');
  184. return new patientPage();
  185. },
  186. getProvidersPage: function () {
  187. var providersPage = require('./patient/providers.po.js');
  188. return new providersPage();
  189. },
  190. getPreopSummaryPage: function () {
  191. var preopSummaryPage = require('./patient/preop/summary.po.js');
  192. return new preopSummaryPage();
  193. },
  194. getPreopPtInfoPage: function () {
  195. var preopPtInfoPage = require('./patient/preop/pt_info.po.js');
  196. return new preopPtInfoPage();
  197. },
  198. getPreopMedHxPage: function () {
  199. var preopMedHxPage = require('./patient/preop/med_hx.po.js');
  200. return new preopMedHxPage();
  201. },
  202. getPreopMedsPage: function () {
  203. var preopMedsPage = require('./patient/preop/meds.po.js');
  204. return new preopMedsPage();
  205. },
  206. getPreopSxHxPage: function () {
  207. var preopSxHxPage = require('./patient/preop/sx_hx.po.js');
  208. return new preopSxHxPage();
  209. },
  210. getPreopAnesHxPage: function () {
  211. var preopAnesHxPage = require('./patient/preop/anes_hx.po.js');
  212. return new preopAnesHxPage();
  213. },
  214. getPreopSocialHxPage: function () {
  215. var preopSocialHxPage = require('./patient/preop/social_hx.po.js');
  216. return new preopSocialHxPage();
  217. },
  218. getPreopLabsPage: function () {
  219. var preopLabsPage = require('./patient/preop/labs.po.js');
  220. return new preopLabsPage();
  221. },
  222. getPreopVitalsPage: function () {
  223. var preopVitalsPage = require('./patient/preop/vitals.po.js');
  224. return new preopVitalsPage();
  225. },
  226. getPreopAirwayPage: function () {
  227. var preopAirwayPage = require('./patient/preop/airway.po.js');
  228. return new preopAirwayPage();
  229. },
  230. getPreopAllergyPage: function () {
  231. var preopAllergyPage = require('./patient/preop/allergy.po.js');
  232. return new preopAllergyPage();
  233. },
  234. getPreopAnesEvalPage: function () {
  235. var preopAnesEvalPage = require('./patient/preop/anes_eval.po.js');
  236. return new preopAnesEvalPage();
  237. },
  238. getPreopFollowupPage: function () {
  239. var preopFollowupPage = require('./patient/preop/followup.po.js');
  240. return new preopFollowupPage();
  241. },
  242. getPreopDayOfSxPage: function () {
  243. var preopDayOfSxPage = require('./patient/preop/day_of_sx.po.js');
  244. return new preopDayOfSxPage();
  245. },
  246. getPreopNotesPage: function () {
  247. var preopNotesPage = require('./patient/preop/notes.po.js');
  248. return new preopNotesPage();
  249. },
  250. getChecklistPage: function () {
  251. var checklistPage = require('./patient/checklist.po.js');
  252. return new checklistPage();
  253. },
  254. getEmergencePage: function () {
  255. var emergencePage = require('./patient/emergence.po.js');
  256. return new emergencePage();
  257. },
  258. getRegionalPage: function () {
  259. var regionalPage = require('./patient/regional.po.js');
  260. return new regionalPage();
  261. },
  262. getSignaturePage: function () {
  263. var signaturesPage = require('./patient/signatures.po.js');
  264. return new signaturesPage();
  265. },
  266. getPostopPage: function () {
  267. var postopPage = require('./patient/postop.po.js');
  268. return new postopPage();
  269. },
  270. getTemplatesPage: function () {
  271. var templatesPage = require('./patient/templates.po.js');
  272. return new templatesPage();
  273. }
  274. }
  275. });
  276.  
  277. module.exports = bottlejs;
  278.  
  279. ----------------------------------------------
  280. patient.po
  281.  
  282. var commonHelper = require('./../../helpers/common.helper.js');
  283.  
  284. var NewPatientPage = function () {
  285.  
  286. //--------------------------------------------------------------------------
  287. // Locators
  288. //--------------------------------------------------------------------------
  289.  
  290. var eventClick = '[ng-click="btnEventClick($event)"]:nth-of-type(1)';
  291.  
  292. //--------------------------------------------------------------------------
  293. // Elements
  294. //--------------------------------------------------------------------------
  295.  
  296. this.btnSavePatient = $('[ng-click="saveClick($event)"]');
  297.  
  298. this.btnFinalize = $('[ng-click="finalizeClick(true)"]');
  299.  
  300. this.txtMrn = element(by.model('p.Data.Patient.MRN'));
  301.  
  302. this.txtFirstName = element(by.model('p.Data.Patient.FirstName'));
  303.  
  304. this.txtLastName = element(by.model('p.Data.Patient.LastName'));
  305.  
  306. this.txtAccountNumber = element(by.model('p.Data.Proc.AccountNumber'));
  307.  
  308. this.txtDob = element(by.id('DOB'));
  309.  
  310. this.selOr = $('[get-options="getFacilitiesORs()"] select');
  311.  
  312. this.selEncounterType = $('[get-options="getEncounterTypes()"] select');
  313.  
  314. this.eleProvidersMenuItem = element(by.id('providers'));
  315.  
  316. this.eleConsentFormMenuItem = element(by.id('consent_form'));
  317.  
  318. this.eleChecklistMenuItem = element(by.id('checklist'));
  319.  
  320. this.eleRegionalMenuItem = element(by.id('regional'));
  321.  
  322. this.eleChartMenuItem = element(by.id('chart'));
  323.  
  324. this.eleEmergenceMenuItem = element(by.id('emergence'));
  325.  
  326. this.eleNotesMenuItem = element(by.id('notes'));
  327.  
  328. this.eleLabsMenuItem = element(by.id('pacu_blood_gas'));
  329.  
  330. this.eleSignaturesMenuItem = element(by.id('signatures'));
  331.  
  332. this.elePqrsMenuItem = element(by.id('pqrs'));
  333.  
  334. this.elePostopMenuItem = element(by.id('postop'));
  335.  
  336. this.elePostopOrdersMenuItem = element(by.id('postop_orders'));
  337.  
  338. this.eleNumberFinalizeWarning = $('[ng-if="p.Data.validationList"]');
  339.  
  340. this.eleFinalizeWarning = element.all(by.repeater('v in p.Data.validationList'));
  341.  
  342. this.txtFullNameQuick = element(by.binding('p.Data.Patient.FirstName'));
  343.  
  344. this.txtMrnQuick = element(by.binding('p.Data.Patient.MRN'));
  345.  
  346. this.btnSet = $('.dwb0');
  347.  
  348. this.txtDiagnosis = $('#diagnosis-new [class^="ui-input"]');
  349.  
  350. this.eleDiagnosisSearch = $('[title="Diagnosis"] div[placeholder="-Search-"]');
  351.  
  352. this.eleProcedureSearch = $('[title="Procedure"] div[placeholder="-Search-"]');
  353.  
  354. this.selectDiagnosis = $('#diagnosis-new input[aria-owns^="ui-select-choices"]');
  355.  
  356. this.btnDeleteDiagnosis = $('[ng-click="btnDeleteCode_click(\'Diagnosis\', d)"]');
  357.  
  358. this.txtProcedure = $('#procedure-new [class^="ui-input"]')
  359.  
  360. this.selectProcedure = $('#procedure-new input[aria-label="Select box"]');
  361.  
  362. this.btnDeleteProcedure = $('[ng-click="btnDeleteCode_click(\'Procedure\', pr)"]');
  363.  
  364. this.btnPhysicalStatus = element(by.cssContainingText('[ng-click="physicalStatusClick($event, t)"]', 'Physical Status'));
  365.  
  366. this.btnTimeOut = $('#TimeOutTime ' + eventClick);
  367.  
  368. this.btnIncision = $('#IncisionTime ' + eventClick);
  369.  
  370. this.btnSurgeryEnd = $('#SurgeryEndTime ' + eventClick);
  371.  
  372. this.btnAnesEnd = $('#AnesEnd ' + eventClick);
  373.  
  374. this.btnAnesStart = $('#AnesStart ' + eventClick);
  375.  
  376. this.eleDatePopup = $('[role="dialog"]');
  377.  
  378. this.selectResult = $('.active[ng-repeat="item in $select.items track by $index"]');
  379.  
  380. this.btnPatient = element(by.id('patient'));
  381.  
  382. this.btnProviders = element(by.id('providers'));
  383.  
  384. this.btnConsentForm = element(by.id('consent_form'));
  385.  
  386. this.btnPreop = element(by.id('preop'));
  387.  
  388. this.btnChecklist = element(by.id('checklist'));
  389.  
  390. this.btnRegional = element(by.id('regional'));
  391.  
  392. this.btnChart = element(by.id('chart'));
  393.  
  394. this.btnEmergence = element(by.id('emergence'));
  395.  
  396. this.btnNotes = element(by.id('notes'));
  397.  
  398. this.btnLabs = element(by.id('pacu_blood_gas'));
  399.  
  400. this.btnSignatures = element(by.id('signatures'));
  401.  
  402. this.btnPqrs = element(by.id('pqrs'));
  403.  
  404. this.btnPostop = element(by.id('postop'));
  405.  
  406. this.btnPostopOrders = element(by.id('postop_orders'));
  407.  
  408. this.btnBilling = element(by.id('billing'));
  409.  
  410. this.selScheduledStart = element(by.model('p.Data.Proc.ScheduleStartTime'));
  411.  
  412. this.chkGreen = $('.glyphicons-check.grass-d');
  413.  
  414. this.lnkClickToFinalize = element(by.cssContainingText('div.col-xs-10', 'Validated! Click to finalize.'));
  415.  
  416. this.elePdfViewer = $('#pdf_wrapper #pdfframe');
  417.  
  418. this.btnBack = $('[ng-click="goBack()"]');
  419.  
  420. this.btnUnlock = $('[ng-show="canUnlock()"]');
  421.  
  422. this.btnRigthScreenSelect = element(by.id('account-nav'));
  423.  
  424. this.btnViewRecords = $('[ng-click="print(pdfLink)"]');
  425.  
  426. this.btnReport = $('[ng-click="go(\'app.reportAProblem\', $event)"]');
  427.  
  428. this.btnLogout = $('[class="dropdown-menu pull-right"] [ng-click="logout()"]');
  429.  
  430. this.btnUnlockYes = $('[ng-click="confirmYesCallback()"]');
  431.  
  432. this.txtNotes = element(by.model('addendum.text'));
  433.  
  434. this.btnSaveAndSign = $('[ng-click="confirmAddendum()"]');
  435.  
  436. this.elePDF = element(by.id('pdf_wrapper'));
  437.  
  438. this.btnCancel = $('[ng-click="cancelCaseClick()"]');
  439.  
  440. this.btnCancelCaseSave = $('[ng-click="cancelCaseSave()"]');
  441.  
  442. this.btnReactivate = $('[ng-click="reactivateCase()"]');
  443.  
  444. this.btnTemplate = $('[ng-click="go(\'app.templates\', $event)"]')
  445.  
  446. //--------------------------------------------------------------------------
  447. // Functions
  448. //--------------------------------------------------------------------------
  449.  
  450. this.clickTemplate = function () {
  451. this.btnTemplate.click();
  452. };
  453.  
  454. this.clickCancelCaseSave = function () {
  455. this.btnCancelCaseSave.click();
  456. };
  457.  
  458. this.checkCancelReason = function (name) {
  459. element(by.cssContainingText('span', name)).click()
  460. };
  461.  
  462. this.clickCancel = function () {
  463. this.btnCancel.click();
  464. };
  465.  
  466. this.clickSaveAndSign = function () {
  467. this.btnSaveAndSign.click();
  468. };
  469.  
  470. this.fillNotes = function (value) {
  471. this.txtNotes.clear();
  472. this.txtNotes.sendKeys(value);
  473. };
  474.  
  475. this.clickUnlockYes = function () {
  476. this.btnUnlockYes.click();
  477. };
  478.  
  479. this.clickUnlock = function () {
  480. this.btnUnlock.click();
  481. };
  482.  
  483. this.clickRightScreenMenu = function () {
  484. this.btnRigthScreenSelect.click();
  485. };
  486.  
  487. this.fillMrn = function(value) {
  488. this.txtMrn.clear();
  489. this.txtMrn.sendKeys(value);
  490. };
  491.  
  492. this.fillAccountNumber = function(value) {
  493. this.txtAccountNumber.clear();
  494. this.txtAccountNumber.sendKeys(value);
  495. };
  496.  
  497. this.fillFirstName = function(value) {
  498. this.txtFirstName.clear();
  499. this.txtFirstName.sendKeys(value);
  500. };
  501.  
  502. this.fillLastName = function(value) {
  503. this.txtLastName.clear();
  504. this.txtLastName.sendKeys(value);
  505. };
  506.  
  507. this.selectOr = function(option) {
  508. commonHelper.selectFromDropdown(this.selOr, option);
  509. };
  510.  
  511. this.clickSavePatient = function() {
  512. this.btnSavePatient.click();
  513. };
  514.  
  515. this.fullNameQuickInfo = function() {
  516. return this.txtFullNameQuick.getText();
  517. };
  518.  
  519. this.mrnQuickInfo = function() {
  520. return this.txtMrnQuick.getText();
  521. };
  522.  
  523. this.fillDOB = function (date) {
  524. browser.executeScript('$("#DOB").prop("value", "'+ date +'")');
  525. browser.executeScript('$("#DOB").trigger("change")');
  526. this.txtDob.click();
  527. this.clickSet();
  528. };
  529.  
  530. this.fillDiagnosis = function (value) {
  531. this.txtDiagnosis.click();
  532. this.selectDiagnosis.sendKeys(value);
  533. commonHelper.waitUntilElementVisible(this.selectResult);
  534. this.selectResult.click();
  535. commonHelper.waitUntilElementPresent(this.btnDeleteDiagnosis);
  536. };
  537.  
  538. this.fillProcedure = function (value) {
  539. this.txtProcedure.click();
  540. this.selectProcedure.sendKeys(value);
  541. commonHelper.waitUntilElementVisible(this.selectResult);
  542. this.selectResult.click();
  543. commonHelper.waitUntilElementPresent(this.btnDeleteProcedure);
  544. };
  545.  
  546. this.selectedFacility = function() {
  547. return $('[model="p.Data.Patient.FacilityID"] option[selected="selected"]').getText();
  548. };
  549.  
  550. this.selectScheduledStart = function() {
  551. this.selScheduledStart.click();
  552. this.clickSet();
  553. };
  554.  
  555. this.selectEncounterType = function(option) {
  556. commonHelper.selectFromDropdown(this.selEncounterType, option);
  557. };
  558.  
  559. // Time panel
  560.  
  561. this.setTimeOut = function () {
  562. this.btnTimeOut.click();
  563. this.clickSet();
  564. commonHelper.waitUntilElementInvisible(this.eleDatePopup);
  565. };
  566.  
  567. this.setIncision = function () {
  568. this.btnIncision.click();
  569. this.clickSet();
  570. commonHelper.waitUntilElementInvisible(this.eleDatePopup);
  571. };
  572.  
  573. this.setSurgeryEnd = function () {
  574. this.btnSurgeryEnd.click();
  575. this.clickSet();
  576. commonHelper.waitUntilElementInvisible(this.eleDatePopup);
  577. };
  578.  
  579. this.setAnesEnd = function () {
  580. this.btnAnesEnd.click();
  581. this.clickSet();
  582. commonHelper.waitUntilElementInvisible(this.eleDatePopup);
  583. };
  584.  
  585. this.setAnesStart = function () {
  586. this.btnAnesStart.click();
  587. this.clickSet();
  588. commonHelper.waitUntilElementInvisible(this.eleDatePopup);
  589. };
  590.  
  591. this.setPhysicalStatus = function (value) {
  592. this.btnPhysicalStatus.click();
  593. element(by.css('[data-val="' + value + '"]')).click();
  594. this.clickSet();
  595. };
  596.  
  597. this.clickSet = function() {
  598. commonHelper.waitUntilElementVisible(this.btnSet);
  599. this.btnSet.click();
  600. browser.sleep(500);
  601. };
  602.  
  603. // Warnings
  604.  
  605. this.getNumberOfWarningPatient = function () {
  606. return this.btnPatient.getText();
  607. };
  608.  
  609. this.getNumberOfWarningProviders = function () {
  610. return this.btnProviders.getText();
  611. };
  612.  
  613. this.getNumberOfWarningPreop = function () {
  614. return this.btnPreop.getText();
  615. };
  616.  
  617. this.getNumberOfWarningChecklist = function () {
  618. return this.btnChecklist.getText();
  619. };
  620.  
  621. this.getNumberOfWarningEmergence = function () {
  622. return this.btnEmergence.getText();
  623. };
  624.  
  625. this.getNumberOfWarningPqrs = function () {
  626. return this.btnPqrs.getText();
  627. };
  628.  
  629. this.getNumberOfWarning = function () {
  630. return this.eleNumberFinalizeWarning.getText();
  631. };
  632.  
  633. // Open page from left menu
  634.  
  635. this.clickPatient = function () {
  636. this.btnPatient.click()
  637. };
  638.  
  639. this.clickProviders = function () {
  640. this.btnProviders.click()
  641. };
  642.  
  643. this.clickConsentForm = function () {
  644. this.btnConsentForm.click()
  645. };
  646.  
  647. this.clickPreop = function () {
  648. this.btnPreop.click()
  649. };
  650.  
  651. this.clickChecklist = function () {
  652. this.btnChecklist.click()
  653. };
  654.  
  655. this.clickChart = function () {
  656. this.btnChart.click()
  657. };
  658.  
  659. this.clickEmergence = function () {
  660. this.btnEmergence.click()
  661. };
  662.  
  663. this.clickRegional = function () {
  664. this.btnRegional.click()
  665. };
  666.  
  667. this.clickNotes = function () {
  668. this.btnNotes.click()
  669. };
  670.  
  671. this.clickLabs = function () {
  672. this.btnLabs.click()
  673. };
  674.  
  675. this.clickSignatures = function () {
  676. this.btnSignatures.click()
  677. };
  678.  
  679. this.clickPqrs = function () {
  680. this.btnPqrs.click()
  681. };
  682.  
  683. this.clickPostop = function () {
  684. this.btnPostop.click()
  685. };
  686.  
  687. this.clickPostopOrders = function () {
  688. this.btnPostopOrders.click()
  689. };
  690.  
  691. this.clickBilling = function () {
  692. this.btnBilling.click()
  693. };
  694.  
  695. this.clickLinkToFinalize = function() {
  696. this.lnkClickToFinalize.click();
  697. };
  698.  
  699. this.clickFinalize = function() {
  700. commonHelper.waitUntilElementVisible(this.btnFinalize)
  701. this.btnFinalize.click();
  702. };
  703.  
  704. this.clickBack = function() {
  705. this.btnBack.click();
  706. };
  707. };
  708.  
  709. module.exports = NewPatientPage;
  710.  
  711. -------------------------------------------------------------------
  712. regional.po
  713.  
  714. var commonHelper = require('./../../helpers/common.helper.js');
  715.  
  716. var RegionalPage = function () {
  717.  
  718. //--------------------------------------------------------------------------
  719. // Elements
  720. //--------------------------------------------------------------------------
  721.  
  722. this.btnAddSignatureRegoinal = $('[ng-click="sign(\'Regional\')"]');
  723.  
  724. this.selectNerveBlock = element(by.model('b.NerveBlock'));
  725.  
  726.  
  727. //--------------------------------------------------------------------------
  728. // Functions
  729. //--------------------------------------------------------------------------
  730.  
  731. this.getTime = function () {
  732. return element(by.css('[ng-repeat*="Priority"]:nth-of-type(1) input'));
  733. };
  734.  
  735. this.clickAddSignatureRegoinal = function () {
  736. this.btnAddSignatureRegoinal.click();
  737. };
  738.  
  739. this.clickCheckbox = function(value) {
  740. return element(by.cssContainingText("label", value)).click();
  741. };
  742. };
  743.  
  744. module.exports = RegionalPage;
  745. -------------------------------------------------------
  746. summary.po
  747.  
  748. var PreopSummaryPage = function () {
  749.  
  750. //--------------------------------------------------------------------------
  751. // Elements
  752. //-------------------------------------------------------------------------
  753.  
  754. this.eleMDSignature = $$('[class^="mbsc-label"]').first();
  755.  
  756. this.btnAddSignature = $('[ng-click="sign(\'PreopMain\')"]');
  757.  
  758. this.btnSendPropPdf = $('[ng-click="UploadPDF()"]');
  759.  
  760. this.btnAddPreopSignature =$('[ng-click="sign(\'PreopOther\', preopSig.UserID)"]');
  761.  
  762. //--------------------------------------------------------------------------
  763. // Functions
  764. //--------------------------------------------------------------------------
  765.  
  766. this.clickAddSignature = function () {
  767. browser.executeScript('document.getElementsByClassName("row next-prev-fixed ng-scope")[0].style.display = "none"');
  768. this.btnAddSignature.click();
  769. };
  770.  
  771. this.clickAddPreopSignature = function () {
  772. browser.executeScript('document.getElementsByClassName("col-xs-12 text-charcoal")[0].style.display = "none"');
  773. browser.executeScript('document.getElementsByClassName("row next-prev-fixed ng-scope")[0].style.display = "none"');
  774. this.btnAddPreopSignature.click();
  775. };
  776.  
  777. this.getMDSignature = function () {
  778. return this.eleMDSignature.getText();
  779. };
  780.  
  781. this.openPreopSubtab = function(name) {
  782. element(by.cssContainingText('[ng-repeat="view in preOp.menuItems"]', name)).click();
  783. };
  784.  
  785. this.openPreopSubtabTakeCase = function(name) {
  786. element(by.cssContainingText('[ng-repeat="view in preOp.menuItems"]', name)).click();
  787. };
  788. };
  789.  
  790. module.exports = PreopSummaryPage;
  791.  
  792. ---------------------------------------------------------------
  793. take_case.spec
  794.  
  795. var pageObject = require('./../../../po/pages').container.PageObject;
  796. var signInPage = pageObject.getSignInPage();
  797. var patientListPage = pageObject.getPatientListPage();
  798. var patientPage = pageObject.getPatientPage();
  799. var providersPage = pageObject.getProvidersPage();
  800. var preopSummaryPage = pageObject.getPreopSummaryPage();
  801. var preopMedHxPage = pageObject.getPreopMedHxPage();
  802. var preopMedsPage = pageObject.getPreopMedsPage();
  803. var preopAllergyPage = pageObject.getPreopAllergyPage();
  804. var preopDayOfSxPage = pageObject.getPreopDayOfSxPage();
  805. var preopLabsPage = pageObject.getPreopLabsPage();
  806. var templatesPage = pageObject.getTemplatesPage();
  807. var checklistPage = pageObject.getChecklistPage();
  808. var regionalPage = pageObject.getRegionalPage();
  809. var emergencePage = pageObject.getEmergencePage();
  810. var signInData = require('./../../../data/sign_in/index');
  811. var patientData = require('./../../../data/patient/index');
  812. var commonHelper = require('./../../../helpers/common.helper.js');
  813.  
  814. describe('Take case', function () {
  815.  
  816. var username = signInData.existingUser.username;
  817. var password = signInData.existingUser.password;
  818.  
  819. var mrn = patientData.patient.mrn;
  820. var firstName = patientData.patient.firstName + commonHelper.randomAlphaNumeric();
  821. var lastName = patientData.patient.lastName + commonHelper.randomAlphaNumeric();
  822. var fullName = firstName + ' ' + lastName;
  823. var or = patientData.patient.or;
  824. var dob = patientData.patient.dob;
  825. var physicalStatus = patientData.patient.physicalStatus;
  826. var diagnosis = patientData.patient.diagnosis;
  827. var procedure = patientData.patient.procedure;
  828. var surgeon = patientData.patient.surgeon;
  829. var userName = patientData.patient.mdSignature;
  830.  
  831. describe('checking for take case functional - adding case', function () {
  832.  
  833. beforeAll(function () {
  834. browser.get(signInData.link);
  835. });
  836.  
  837. afterAll(function () {
  838. commonHelper.clearAllData();
  839. });
  840.  
  841. it('should login as existing user',function () {
  842. signInPage.login(username, password);
  843. });
  844.  
  845. it('should open new patient page',function () {
  846. patientListPage.clickAddNewPatient();
  847. commonHelper.waitUntilElementVisible(patientPage.btnSavePatient);
  848. });
  849.  
  850. it('should fill new patient required fields',function () {
  851. patientPage.fillMrn(mrn);
  852. patientPage.fillFirstName(firstName);
  853. patientPage.fillLastName(lastName);
  854. patientPage.selectOr(or);
  855. patientPage.clickSavePatient();
  856. patientPage.setAnesStart();
  857. }, 20000);
  858.  
  859. it('should open preops', function () {
  860. patientPage.clickPreop();
  861. preopSummaryPage.clickAddSignature();
  862. });
  863.  
  864. it('should fill Allergy tab', function () {
  865. preopSummaryPage.openPreopSubtabTakeCase('Allergy');
  866. commonHelper.waitUntilElementVisible(preopAllergyPage.parentSection);
  867.  
  868. preopAllergyPage.fillAllergen('A-25');
  869. preopAllergyPage.fillReaction('Anxiety');
  870. preopAllergyPage.fillSeverity('Mild');
  871. });
  872.  
  873. it('should fill meds tab', function () {
  874. preopSummaryPage.openPreopSubtabTakeCase('Meds');
  875. commonHelper.waitUntilElementVisible(preopMedsPage.eleInpatientMedicament());
  876.  
  877. preopMedsPage.fillMedication('A-25');
  878. preopMedsPage.fillRoute('Anxiety');
  879. preopMedsPage.fillDosage('Mild');
  880. preopMedsPage.fillFrequency('1 to 2 times a day');
  881. preopMedsPage.setTimeGiven();
  882. });
  883.  
  884. it('should fill Med sh', function () {
  885. preopSummaryPage.openPreopSubtabTakeCase('Med Hx');
  886. commonHelper.waitUntilElementVisible(preopMedHxPage.txtNotes());
  887.  
  888. preopMedHxPage.clickCheckbox('Essential Hypertension');
  889. });
  890.  
  891. it('should fill Day of Sx', function () {
  892. preopSummaryPage.openPreopSubtabTakeCase('Day of Sx');
  893.  
  894. preopDayOfSxPage.clickCheckbox('NPO solids greater than 8 hours');
  895. });
  896.  
  897. it('should fill Labs', function () {
  898. preopSummaryPage.openPreopSubtabTakeCase('Labs');
  899.  
  900. preopLabsPage.clickCheckbox('Reviewed')
  901. });
  902.  
  903. it('should open right screen menu', function () {
  904. patientPage.clickRightScreenMenu();
  905. });
  906.  
  907. it('should open templates page', function () {
  908. patientPage.clickTemplate();
  909. commonHelper.waitUntilElementVisible(templatesPage.btnSearchPublicTemplates)
  910. });
  911.  
  912. it('should add public templates', function () {
  913. templatesPage.clickPublicTemplates();
  914. templatesPage.clickTableTemplates('Total Knee demo');
  915. commonHelper.waitUntilElementVisible(templatesPage.btnApply);
  916. templatesPage.clickApply();
  917. templatesPage.clickYes();
  918. });
  919.  
  920. it('should see patient page', function () {
  921. commonHelper.waitUntilElementVisible(patientPage.btnAnesEnd)
  922. });
  923.  
  924. it('should click finalize and see number of errors', function () {
  925. patientPage.clickFinalize();
  926.  
  927. expect(patientPage.getNumberOfWarning()).toContain('15');
  928. expect(patientPage.eleFinalizeWarning.count()).toEqual(15);
  929. expect(patientPage.getNumberOfWarningPatient()).toContain('3');
  930. expect(patientPage.getNumberOfWarningProviders()).toContain('1');
  931. expect(patientPage.getNumberOfWarningPreop()).toContain('1');
  932. patientPage.clickFinalize();
  933. });
  934.  
  935. it('should fill new patient required fields',function () {
  936. patientPage.clickPatient();
  937. patientPage.fillDOB(dob);
  938. patientPage.fillDiagnosis(diagnosis);
  939. patientPage.fillProcedure(procedure);
  940. patientPage.setAnesEnd();
  941. patientPage.setPhysicalStatus(physicalStatus);
  942.  
  943. patientPage.clickProviders();
  944. providersPage.fillSurgeon(surgeon);
  945.  
  946. patientPage.clickRegional();
  947. regionalPage.clickAddSignatureRegoinal();
  948. regionalPage.clickCheckbox('Sterile Techniques Followed');
  949. regionalPage.clickCheckbox('RN/Licensed');
  950.  
  951. patientPage.clickPreop();
  952. preopSummaryPage.clickAddPreopSignature();
  953.  
  954. patientPage.clickChecklist();
  955. commonHelper.waitUntilElementVisible(checklistPage.getCheckbox('Pre-Procedure', 'Patient Re-Evaluated Prior to Induction'));
  956. checklistPage.clickCheckbox('Anesthesia Techniques', 'General');
  957. checklistPage.clickCheckbox('Anesthesia Techniques', 'GA-TIVA');
  958. checklistPage.clickCheckbox('Anesthesia Techniques', 'Inhalation');
  959.  
  960. patientPage.clickEmergence();
  961. emergencePage.clickAddIntraopSignature();
  962.  
  963. patientPage.clickPqrs();
  964. emergencePage.selectTemperature('Not Applicable');
  965. emergencePage.selectPacu('PACU handover checklist used');
  966. emergencePage.selectIcu('ICU Handover Checklist Used');
  967. emergencePage.selectEvent('Not Applicable');
  968. }, 60000);
  969.  
  970. it('should click finalize', function () {
  971. patientPage.clickFinalize();
  972. });
  973.  
  974. it('should see green checkbox', function () {
  975. commonHelper.waitUntilElementVisible(patientPage.chkGreen);
  976. });
  977.  
  978. it('should click link to finalize', function () {
  979. patientPage.clickLinkToFinalize();
  980. commonHelper.waitUntilElementVisible(patientPage.elePdfViewer);
  981. });
  982.  
  983. it('should click back button', function () {
  984. patientPage.clickBack();
  985. });
  986.  
  987. it('should show patient list page', function () {
  988. commonHelper.waitUntilElementVisible(patientListPage.btnAddNewPatient);
  989. });
  990.  
  991. it('should open completed case in accordion', function () {
  992. commonHelper.waitUntilElementVisible(patientListPage.completedPatientCase(fullName));
  993. });
  994.  
  995. it('should see patient card', function () {
  996. expect(patientListPage.patientInfo(fullName)).toContain('MRN: ' + mrn);
  997. expect(patientListPage.patientInfo(fullName)).toContain('DOB: 11/25/1980');
  998. expect(patientListPage.patientInfo(fullName)).toContain(or);
  999. expect(patientListPage.patientInfo(fullName)).toContain('Surgeon: ' + surgeon);
  1000. expect(patientListPage.patientInfo(fullName)).toContain('Anesthesiologist: ' + userName);
  1001. });
  1002. });
  1003.  
  1004. describe('checking for take case functional - existing case', function () {
  1005.  
  1006. beforeAll(function () {
  1007. browser.get(signInData.link);
  1008. });
  1009.  
  1010. afterAll(function () {
  1011. commonHelper.clearAllData();
  1012. });
  1013.  
  1014. it('should login as existing user',function () {
  1015. signInPage.login(username, password);
  1016. });
  1017.  
  1018. it('should open new patient page',function () {
  1019. patientListPage.clickAddNewPatient();
  1020. commonHelper.waitUntilElementVisible(patientPage.btnSavePatient);
  1021. });
  1022.  
  1023. it('should fill new patient required fields',function () {
  1024. patientPage.fillMrn(mrn);
  1025. patientPage.fillFirstName(firstName);
  1026. patientPage.fillLastName(lastName);
  1027. patientPage.selectOr(or);
  1028. patientPage.clickSavePatient();
  1029. patientPage.setAnesStart();
  1030. }, 20000);
  1031.  
  1032. it('should click back button', function () {
  1033. patientPage.clickBack();
  1034. });
  1035.  
  1036. it('should show patient list page', function () {
  1037. commonHelper.waitUntilElementVisible(patientListPage.btnAddNewPatient);
  1038. });
  1039.  
  1040. it('should open existing case', function () {
  1041. patientListPage.clickTakeCase();
  1042. });
  1043.  
  1044. it('should open preops', function () {
  1045. patientPage.clickPreop();
  1046. preopSummaryPage.clickAddSignature();
  1047. });
  1048.  
  1049. it('should fill Allergy tab', function () {
  1050. preopSummaryPage.openPreopSubtabTakeCase('Allergy');
  1051. commonHelper.waitUntilElementVisible(preopAllergyPage.parentSection);
  1052.  
  1053. preopAllergyPage.fillAllergen('A-25');
  1054. preopAllergyPage.fillReaction('Anxiety');
  1055. preopAllergyPage.fillSeverity('Mild');
  1056. });
  1057.  
  1058. it('should fill meds tab', function () {
  1059. preopSummaryPage.openPreopSubtabTakeCase('Meds');
  1060. commonHelper.waitUntilElementVisible(preopMedsPage.eleInpatientMedicament());
  1061.  
  1062. preopMedsPage.fillMedication('A-25');
  1063. preopMedsPage.fillRoute('Anxiety');
  1064. preopMedsPage.fillDosage('Mild');
  1065. preopMedsPage.fillFrequency('1 to 2 times a day');
  1066. preopMedsPage.setTimeGiven();
  1067. });
  1068.  
  1069. it('should fill Med sh', function () {
  1070. preopSummaryPage.openPreopSubtabTakeCase('Med Hx');
  1071. commonHelper.waitUntilElementVisible(preopMedHxPage.txtNotes());
  1072.  
  1073. preopMedHxPage.clickCheckbox('Essential Hypertension');
  1074. });
  1075.  
  1076. it('should fill Day of Sx', function () {
  1077. preopSummaryPage.openPreopSubtabTakeCase('Day of Sx');
  1078.  
  1079. preopDayOfSxPage.clickCheckbox('NPO solids greater than 8 hours');
  1080. });
  1081.  
  1082. it('should fill Labs', function () {
  1083. preopSummaryPage.openPreopSubtabTakeCase('Labs');
  1084.  
  1085. preopLabsPage.clickCheckbox('Reviewed')
  1086. });
  1087.  
  1088. it('should open right screen menu', function () {
  1089. patientPage.clickRightScreenMenu();
  1090. });
  1091.  
  1092. it('should open templates page', function () {
  1093. patientPage.clickTemplate();
  1094. commonHelper.waitUntilElementVisible(templatesPage.btnSearchPublicTemplates)
  1095. });
  1096.  
  1097. it('should add public templates', function () {
  1098. templatesPage.clickPublicTemplates();
  1099. templatesPage.clickTableTemplates('Total Knee demo');
  1100. commonHelper.waitUntilElementVisible(templatesPage.btnApply);
  1101. templatesPage.clickApply();
  1102. templatesPage.clickYes();
  1103. });
  1104.  
  1105. it('should see patient page', function () {
  1106. commonHelper.waitUntilElementVisible(patientPage.btnAnesEnd)
  1107. });
  1108.  
  1109. it('should click finalize and see number of errors', function () {
  1110. patientPage.clickFinalize();
  1111.  
  1112. expect(patientPage.getNumberOfWarning()).toContain('15');
  1113. expect(patientPage.eleFinalizeWarning.count()).toEqual(15);
  1114. expect(patientPage.getNumberOfWarningPatient()).toContain('3');
  1115. expect(patientPage.getNumberOfWarningProviders()).toContain('1');
  1116. expect(patientPage.getNumberOfWarningPreop()).toContain('1');
  1117. patientPage.clickFinalize();
  1118. });
  1119.  
  1120. it('should fill new patient required fields',function () {
  1121. patientPage.clickPatient();
  1122. patientPage.fillDOB(dob);
  1123. patientPage.fillDiagnosis(diagnosis);
  1124. patientPage.fillProcedure(procedure);
  1125. patientPage.setAnesEnd();
  1126. patientPage.setPhysicalStatus(physicalStatus);
  1127.  
  1128. patientPage.clickProviders();
  1129. providersPage.fillSurgeon(surgeon);
  1130.  
  1131. patientPage.clickRegional();
  1132. regionalPage.clickAddSignatureRegoinal();
  1133. regionalPage.clickCheckbox('Sterile Techniques Followed');
  1134. regionalPage.clickCheckbox('RN/Licensed');
  1135.  
  1136. patientPage.clickPreop();
  1137. preopSummaryPage.clickAddPreopSignature();
  1138.  
  1139. patientPage.clickChecklist();
  1140. commonHelper.waitUntilElementVisible(checklistPage.getCheckbox('Pre-Procedure', 'Patient Re-Evaluated Prior to Induction'));
  1141. checklistPage.clickCheckbox('Anesthesia Techniques', 'General');
  1142. checklistPage.clickCheckbox('Anesthesia Techniques', 'GA-TIVA');
  1143. checklistPage.clickCheckbox('Anesthesia Techniques', 'Inhalation');
  1144.  
  1145. patientPage.clickEmergence();
  1146. emergencePage.clickAddIntraopSignature();
  1147.  
  1148. patientPage.clickPqrs();
  1149. emergencePage.selectTemperature('Not Applicable');
  1150. emergencePage.selectPacu('PACU handover checklist used');
  1151. emergencePage.selectIcu('ICU Handover Checklist Used');
  1152. emergencePage.selectEvent('Not Applicable');
  1153. }, 60000);
  1154.  
  1155. it('should click finalize', function () {
  1156. patientPage.clickFinalize();
  1157. });
  1158.  
  1159. it('should see green checkbox', function () {
  1160. commonHelper.waitUntilElementVisible(patientPage.chkGreen);
  1161. });
  1162.  
  1163. it('should click link to finalize', function () {
  1164. patientPage.clickLinkToFinalize();
  1165. commonHelper.waitUntilElementVisible(patientPage.elePdfViewer);
  1166. });
  1167.  
  1168. it('should click back button', function () {
  1169. patientPage.clickBack();
  1170. });
  1171.  
  1172. it('should show patient list page', function () {
  1173. commonHelper.waitUntilElementVisible(patientListPage.btnAddNewPatient);
  1174. });
  1175.  
  1176. it('should open completed case in accordion', function () {
  1177. commonHelper.waitUntilElementVisible(patientListPage.completedPatientCase(fullName));
  1178. });
  1179.  
  1180. it('should see patient card', function () {
  1181. expect(patientListPage.patientInfo(fullName)).toContain('MRN: ' + mrn);
  1182. expect(patientListPage.patientInfo(fullName)).toContain('DOB: 11/25/1980');
  1183. expect(patientListPage.patientInfo(fullName)).toContain(or);
  1184. expect(patientListPage.patientInfo(fullName)).toContain('Surgeon: ' + surgeon);
  1185. expect(patientListPage.patientInfo(fullName)).toContain('Anesthesiologist: ' + userName);
  1186. });
  1187. });
  1188. });
  1189.  
  1190. -------------------------------------------------------------------
  1191. meds.po
  1192.  
  1193. var commonHelper = require('./../../../helpers/common.helper.js');
  1194.  
  1195. var PreopMedsPage = function () {
  1196.  
  1197. //--------------------------------------------------------------------------
  1198. // Elements
  1199. //-------------------------------------------------------------------------
  1200.  
  1201. this.btnSet = $('.dwb0');
  1202.  
  1203. this.eleDatePopup = $('[role="dialog"]');
  1204.  
  1205. //--------------------------------------------------------------------------
  1206. // Functions
  1207. //--------------------------------------------------------------------------
  1208.  
  1209. this.eleInpatientMedicament = function () {
  1210. return $('[class="panel panel-primary"]:nth-of-type(1)')
  1211. };
  1212.  
  1213. this.eleFirstResult = function (value) {
  1214. element(by.cssContainingText('[ng-bind-html="item.text | highlight: $select.search"]', value)).click();
  1215. };
  1216.  
  1217. this.fillMedication = function (value) {
  1218. this.eleInpatientMedicament().$('[placeholder="Medication"][ng-value="selectedItem.selected.text"]').click();
  1219. this.eleInpatientMedicament().$('[ng-model="$select.search"][placeholder="Medication"]').sendKeys(value);
  1220. this.eleFirstResult(value);
  1221. };
  1222.  
  1223. this.fillRoute = function (value) {
  1224. this.eleInpatientMedicament().$('[placeholder="Route"][ng-value="selectedItem.selected.text"]').click();
  1225. this.eleInpatientMedicament().$('[ng-model="$select.search"][placeholder="Route"]').sendKeys(value);
  1226. this.eleFirstResult(value);
  1227. };
  1228.  
  1229. this.fillDosage = function (value) {
  1230. this.eleInpatientMedicament().$('[placeholder="Dosage"][ng-value="selectedItem.selected.text"]').click();
  1231. this.eleInpatientMedicament().$('[ng-model="$select.search"][placeholder="Dosage"]').sendKeys(value);
  1232. this.eleFirstResult(value);
  1233. };
  1234.  
  1235. this.fillFrequency = function (value) {
  1236. this.eleInpatientMedicament().$('input[placeholder="Frequency"]').click();
  1237. this.eleFirstResult(value);
  1238. };
  1239.  
  1240. this.setTimeGiven = function () {
  1241. browser.executeScript('document.getElementsByClassName("dwo")[0].style.display = "none"');
  1242. browser.executeScript('document.getElementsByClassName("dw-persp")[0].style.display = "none"');
  1243. browser.executeScript('document.getElementsByClassName("col-xs-2 col-md-2")[0].style.display = "none"');
  1244. element(by.id('newInpatientMedTimeGiven')).click();
  1245. this.clickSet();
  1246.  
  1247. commonHelper.waitUntilElementInvisible(this.eleDatePopup);
  1248. };
  1249.  
  1250. this.clickSet = function() {
  1251. commonHelper.waitUntilElementVisible(this.btnSet);
  1252. this.btnSet.click();
  1253. browser.sleep(500);
  1254. };
  1255. };
  1256.  
  1257. module.exports = PreopMedsPage;
  1258.  
  1259. ----------------------------------------------------------------------
  1260. templates.po
  1261.  
  1262. var commonHelper = require('./../../helpers/common.helper.js');
  1263.  
  1264. var TemplatesPage = function () {
  1265.  
  1266. //--------------------------------------------------------------------------
  1267. // Elements
  1268. //--------------------------------------------------------------------------
  1269.  
  1270. this.btnSearchPublicTemplates = $('[ng-click="searchPublicClick()"]');
  1271.  
  1272. this.btnApply = $('[ng-click="callConfirm(\'Apply\', modalSelectTemplate)"]');
  1273.  
  1274. this.btnYes = $('[ng-click="confirmYesCallback()"]')
  1275.  
  1276. //--------------------------------------------------------------------------
  1277. // Functions
  1278. //--------------------------------------------------------------------------
  1279.  
  1280. this.clickPublicTemplates = function () {
  1281. this.btnSearchPublicTemplates.click();
  1282. };
  1283.  
  1284. this.eleTableTemplates = function () {
  1285. return element(by.repeater('t in publicTemplateList | filter: { UserID: \'!\' + p.Data.MyUser.UserID, Name: searchPublic } | orderBy: \'Name\''))
  1286. };
  1287.  
  1288. this.clickTableTemplates = function (name) {
  1289. element(by.cssContainingText('label', name)).click();
  1290. };
  1291.  
  1292. this.clickApply = function () {
  1293. this.btnApply.click();
  1294. };
  1295. this.clickYes = function () {
  1296. this.btnYes.click();
  1297. };
  1298.  
  1299. };
  1300.  
  1301. module.exports = TemplatesPage;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement