Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package automation.Pages;

import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;

import automation.ExplorerSuite;
import automation.SharedCodeClass;

public class EDI_PDI_VerifyAfterSearchHomePageDefaultsToQuickViewAndExpandedSections extends ExplorerSuite {
private String pdiNumberDentalClaim = "200617203000952";
private String pdiNumberProfessionalClaim = "200617203000825";
private String pdiNumberInstitutionalClaim = "200617203000832";

public void localRunner() throws Exception {
System.out.println("Inside of EDI_PDI_VerifyAfterSearchHomePageDefaultsToQuickViewAndExpandedSections.localRunner()!");

goToEdiWebViewerPage();

// Retrieve Dental Claim Information from EWV Search Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvSearchPage(pdiNumberDentalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyDentalDetailViewSectionHeadersInExpandedState();

// Collapse all Section Headers and verify that they are all collapsed.
collapseAllSectionHeaders();
verifyQuickViewSectionHeadersInCollapsedState();
verifyDentalDetailViewSectionHeadersInCollapsedState();

// Retrieve Professional Claim Information from EWV Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvPage(pdiNumberProfessionalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyProfessionalDetailViewSectionHeadersInExpandedState();

// Collapse all Section Headers and verify that they are all collapsed.
collapseAllSectionHeaders();
verifyQuickViewSectionHeadersInCollapsedState();
verifyProfessionalDetailViewSectionHeadersInCollapsedState();

// Retrieve Institutional Claim Information from EWV Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvPage(pdiNumberInstitutionalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyInstitutionalDetailViewSectionHeadersInExpandedState();

goToEdiWebViewerPage_v2();

// Retrieve Professional Claim Information from EWV Search Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvSearchPage(pdiNumberProfessionalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyProfessionalDetailViewSectionHeadersInExpandedState();

// Collapse all Section Headers and verify that they are all collapsed.
collapseAllSectionHeaders();
verifyQuickViewSectionHeadersInCollapsedState();
verifyProfessionalDetailViewSectionHeadersInCollapsedState();

// Retrieve Institutional Claim Information from EWV Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvPage(pdiNumberInstitutionalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyInstitutionalDetailViewSectionHeadersInExpandedState();

// Collapse all Section Headers and verify that they are all collapsed.
collapseAllSectionHeaders();
verifyQuickViewSectionHeadersInCollapsedState();
verifyInstitutionalDetailViewSectionHeadersInCollapsedState();

// Retrieve Dental Claim Information from EWV Search Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvPage(pdiNumberDentalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyDentalDetailViewSectionHeadersInExpandedState();

goToEdiWebViewerPage_v2();

// Retrieve Institutional Claim Information from EWV Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvSearchPage(pdiNumberInstitutionalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyInstitutionalDetailViewSectionHeadersInExpandedState();

// Collapse all Section Headers and verify that they are all collapsed.
collapseAllSectionHeaders();
verifyQuickViewSectionHeadersInCollapsedState();
verifyInstitutionalDetailViewSectionHeadersInCollapsedState();

// Retrieve Dental Claim Information from EWV Search Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvPage(pdiNumberDentalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyDentalDetailViewSectionHeadersInExpandedState();

// Collapse all Section Headers and verify that they are all collapsed.
collapseAllSectionHeaders();
verifyQuickViewSectionHeadersInCollapsedState();
verifyDentalDetailViewSectionHeadersInCollapsedState();

// Retrieve Professional Claim Information from EWV Page and then check that the Quick View Section is initially selected
// and all the Quick View and Dental View Section Headers are in the Expanded State. Also, make the Detail View in selected
// state.
retrieveClaimInformationUsingEwvPage(pdiNumberProfessionalClaim);
verifyQuickViewSelected();
verifyQuickViewSectionHeadersInExpandedState();
SharedCodeClass.clickById("TAB_detailTab_ewvMaster_1");
Thread.sleep(1000);
verifyDetailViewSelected();
verifyProfessionalDetailViewSectionHeadersInExpandedState();
}

public void goToEdiWebViewerPage() throws Exception {
SharedCodeClass.clickById("NAV_ewvSearch_appNav_1");
Thread.sleep(4000);

SharedCodeClass.findElementId("HDG_ediWebViewer_ewvSearch_1");
SharedCodeClass.findElementId("IPT_pdiSearchNumber_ewvSearch_1");
SharedCodeClass.findElementId("BTN_pdiSearchRetrieve_ewvSearch_1");
SharedCodeClass.findElementId("BTN_pdiClear_ewvSearch_1");
}

public void goToEdiWebViewerPage_v2() throws Exception {
driver.get(baseUrl + "/ewvSearch");
Thread.sleep(4000);

SharedCodeClass.findElementId("HDG_ediWebViewer_ewvSearch_1");
SharedCodeClass.findElementId("IPT_pdiSearchNumber_ewvSearch_1");
SharedCodeClass.findElementId("BTN_pdiSearchRetrieve_ewvSearch_1");
SharedCodeClass.findElementId("BTN_pdiClear_ewvSearch_1");
}

public void retrieveClaimInformationUsingEwvPage(String pdiNumber) throws Exception {
for (int i = 0; i < 15; i++) {
SharedCodeClass.fillAllElementById("IPT_pdiLookup_ewv_1", "" + Keys.BACK_SPACE);
}
SharedCodeClass.fillAllElementById("IPT_pdiLookup_ewv_1", pdiNumber);
Thread.sleep(1000);
SharedCodeClass.clickById("BTN_pdiLookupSubmit_ewv_1");

Thread.sleep(4000);

// Below no longer exists due to changes made by our Style Sheet Expert (J.A.).
// SharedCodeClass.findElementId("DIV_ediWebViewer_ewv_1");
// WebElement webElement = driver.findElement(By.id("DIV_ediWebViewer_ewv_1"));
// Assert.assertEquals("EDI Web Viewer / " + pdiNumber, webElement.getText());

SharedCodeClass.findElementId("HDG_ediWebViewer_ewv_1");
WebElement webElement = driver.findElement(By.id("HDG_ediWebViewer_ewv_1"));
Assert.assertEquals("EDI Web Viewer | " + pdiNumber, webElement.getText());
}

public void retrieveClaimInformationUsingEwvSearchPage(String pdiNumber) throws Exception {
SharedCodeClass.fillAllElementById("IPT_pdiSearchNumber_ewvSearch_1", pdiNumber);
Thread.sleep(1000);
SharedCodeClass.clickById("BTN_pdiSearchRetrieve_ewvSearch_1");

Thread.sleep(5000);

// Below no longer exists due to changes made by our Style Sheet Expert (J.A.).
// SharedCodeClass.findElementId("DIV_ediWebViewer_ewv_1");
// WebElement webElement = driver.findElement(By.id("DIV_ediWebViewer_ewv_1"));
// Assert.assertEquals("EDI Web Viewer / " + pdiNumber, webElement.getText());

SharedCodeClass.findElementId("HDG_ediWebViewer_ewv_1");
WebElement webElement = driver.findElement(By.id("HDG_ediWebViewer_ewv_1"));
Assert.assertEquals("EDI Web Viewer | " + pdiNumber, webElement.getText());
}

public void verifyQuickViewSelected() throws Exception {
WebElement quickViewTabElement = driver.findElement(By.id("TAB_qvTab_ewvMaster_1"));
WebElement detailViewTabElement = driver.findElement(By.id("TAB_detailTab_ewvMaster_1"));

Assert.assertTrue("Quick View Tab should be selected!", quickViewTabElement.isSelected());
Assert.assertFalse("Detail View Tab should not be selected!", detailViewTabElement.isSelected());
}

public void verifyDetailViewSelected() throws Exception {
WebElement quickViewTabElement = driver.findElement(By.id("TAB_qvTab_ewvMaster_1"));
WebElement detailViewTabElement = driver.findElement(By.id("TAB_detailTab_ewvMaster_1"));

Assert.assertFalse("Quick View Tab should not be selected!", quickViewTabElement.isSelected());
Assert.assertTrue("Detail View Tab should be selected!", detailViewTabElement.isSelected());
}

public void verifyQuickViewSectionHeadersInExpandedState() throws Exception {
WebElement quickViewDivElement = driver.findElement(By.id("DIV_quickView_ewv_1"));

WebElement webElement = quickViewDivElement.findElement(By.id("ACC_patientInfo_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Patient Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = quickViewDivElement.findElement(By.id("ACC_vendorInfo_ewv_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Vendor Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = quickViewDivElement.findElement(By.id("billing-information3_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Billing Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = quickViewDivElement.findElement(By.id("otherHealthInfo"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Other Health Information ()HI) Section should be in expanded state.", "true", ngReflectModelValue);
}

public void verifyQuickViewSectionHeadersInCollapsedState() throws Exception {
WebElement quickViewDivElement = driver.findElement(By.id("DIV_quickView_ewv_1"));

WebElement webElement = quickViewDivElement.findElement(By.id("ACC_patientInfo_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Patient Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = quickViewDivElement.findElement(By.id("ACC_vendorInfo_ewv_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Vendor Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = quickViewDivElement.findElement(By.id("billing-information3_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Billing Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = quickViewDivElement.findElement(By.id("otherHealthInfo"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Quick View Other Health Information ()HI) Section should be in collapsed state.", "false", ngReflectModelValue);
}

public void verifyDentalDetailViewSectionHeadersInExpandedState() throws Exception {
WebElement detailViewDivElement = driver.findElement(By.id("DIV_detailView_ewv_1"));

WebElement webElement = detailViewDivElement.findElement(By.id("ACC_patientInfo_dentalDetail_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Patient Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_vendorInfo_dentalDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Vendor Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_billingMsc_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Billing Miscellaneous Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC-billingInfo_dentalDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Billing Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_serviceLines_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail Service Lines Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_ohiClaimAdj_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail OHI Claim Adjustments Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_ohiLine_dentalDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail OHI Service Line Adjustments Section should be in expanded state.", "true", ngReflectModelValue);
}

public void verifyDentalDetailViewSectionHeadersInCollapsedState() throws Exception {
WebElement detailViewDivElement = driver.findElement(By.id("DIV_detailView_ewv_1"));

WebElement webElement = detailViewDivElement.findElement(By.id("ACC_patientInfo_dentalDetail_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Patient Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_vendorInfo_dentalDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Vendor Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_billingMsc_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Billing Miscellaneous Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC-billingInfo_dentalDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail View Billing Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_serviceLines_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail Service Lines Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_ohiClaimAdj_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail OHI Claim Adjustments Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_ohiLine_dentalDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Dental Detail OHI Service Line Adjustments Section should be in collapsed state.", "false", ngReflectModelValue);
}

public void verifyProfessionalDetailViewSectionHeadersInExpandedState() throws Exception {
WebElement detailViewDivElement = driver.findElement(By.id("DIV_detailView_ewv_1"));

WebElement webElement = detailViewDivElement.findElement(By.id("ACC_patientInfo_profDetail_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Patient Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_vendorInfo_profDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Vendor Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_claimAmbulance_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Claim-Level Ambulance Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_lineAmbulance_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Service-Level Ambulance Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_billingMsc_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Billing Miscellaneous Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_billingInfo_profDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Billing Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_serviceLines_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Service Lines Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_ohiClaimAdj_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View OHI Claim Adjustments Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_ohiLine_profDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View OHI Service Line Adjustments Section should be in expanded state.", "true", ngReflectModelValue);
}

public void verifyProfessionalDetailViewSectionHeadersInCollapsedState() throws Exception {
WebElement detailViewDivElement = driver.findElement(By.id("DIV_detailView_ewv_1"));

WebElement webElement = detailViewDivElement.findElement(By.id("ACC_patientInfo_profDetail_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Patient Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_vendorInfo_profDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Vendor Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_claimAmbulance_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Claim-Level Ambulance Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_lineAmbulance_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Service-Level Ambulance Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_billingMsc_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Billing Miscellaneous Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_billingInfo_profDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Billing Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_serviceLines_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View Service Lines Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_ohiClaimAdj_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View OHI Claim Adjustments Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_ohiLine_profDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Professional Detail View OHI Service Line Adjustments Section should be in collapsed state.", "false", ngReflectModelValue);
}

public void verifyInstitutionalDetailViewSectionHeadersInExpandedState() throws Exception {
WebElement detailViewDivElement = driver.findElement(By.id("DIV_detailView_ewv_1"));

WebElement webElement = detailViewDivElement.findElement(By.id("ACC_patientInfo_instDetail_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Patient Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_vendorInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Vendor Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_billingMsc_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Billing Miscellaneous Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_billingInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Billing Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiProcCodes_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Health Care Procedure Codes Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_serviceLines_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Service Lines Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_ohiClaimAdj_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View OHI Claim Adjustments Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_ohiLine_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View OHI Service Line Adjustments Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiValueInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Value Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiConditionInf_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Condition Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiOccurrSpanInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Occurrence Span Information Section should be in expanded state.", "true", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiOccurrInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Occurrence Information Section should be in expanded state.", "true", ngReflectModelValue);
}

public void verifyInstitutionalDetailViewSectionHeadersInCollapsedState() throws Exception {
WebElement detailViewDivElement = driver.findElement(By.id("DIV_detailView_ewv_1"));

WebElement webElement = detailViewDivElement.findElement(By.id("ACC_patientInfo_instDetail_1"));
String ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Patient Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_vendorInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Vendor Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_billingMsc_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Billing Miscellaneous Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_billingInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Billing Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiProcCodes_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Health Care Procedure Codes Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_serviceLines_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View Service Lines Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_info_ohiClaimAdj_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View OHI Claim Adjustments Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_ohiLine_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View OHI Service Line Adjustments Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiValueInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Value Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiConditionInf_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Condition Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiOccurrSpanInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Occurrence Span Information Section should be in collapsed state.", "false", ngReflectModelValue);

webElement = detailViewDivElement.findElement(By.id("ACC_hiOccurrInfo_instDetail_1"));
ngReflectModelValue = webElement.getAttribute("ng-reflect-model");
Assert.assertEquals("Institutional Detail View HI Health Care Occurrence Information Section should be in collapsed state.", "false", ngReflectModelValue);
}

public void collapseAllSectionHeaders() throws Exception {
SharedCodeClass.clickById("IMG_collapseIcon_ewvMaster_1");
}

public void testingWhichSelected() throws Exception {
WebElement quickViewTabElement = driver.findElement(By.id("TAB_qvTab_ewvMaster_1"));
WebElement detailViewTabElement = driver.findElement(By.id("TAB_detailTab_ewvMaster_1"));

System.out.println("quickViewTabElement.isSelected() = " + quickViewTabElement.isSelected());
System.out.println("detailViewTabElement.isSelected() = " + detailViewTabElement.isSelected());
verifyQuickViewSelected();

System.out.println("Click on Detail View Tab....");
detailViewTabElement.click();
Thread.sleep(3000);

System.out.println("quickViewTabElement.isSelected() = " + quickViewTabElement.isSelected());
System.out.println("detailViewTabElement.isSelected() = " + detailViewTabElement.isSelected());
verifyDetailViewSelected();
}

}