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 po;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class EDI_Instit_Quick_PO {
WebDriver driver;
public EDI_Instit_Quick_PO(WebDriver driver){
this.driver = driver;
PageFactory.initElements(driver, this);
}
@FindBy(id = "TAB_qvTab_ewvMaster_1")
private WebElement tabQuicklView; // Detail Tab
@FindBy(xpath = "//div[@id='DIV_quickView_ewv_1']/app-ohi-info/div/div/div/table/tbody[1]/tr/td/app-tooltip/a/span")
private List<WebElement> ohiInfoTooltips; // Tooltips
@FindBy(xpath =
"//div[@id='DIV_quickView_ewv_1']/app-ohi-info/div/div/div/table/tbody[2]/tr[2]/td/div/app-tooltip/button/span")
private List<WebElement> remRemarkCodeTooltips; // Toolt
public ArrayList<String> getOHIInfo_Tooltips(){
WebDriverWait wait = new WebDriverWait(driver, 15);
wait.until(ExpectedConditions.visibilityOf(tabQuicklView));
ArrayList<String> array = new ArrayList<String>();
for(WebElement item: ohiInfoTooltips){
array.add(item.getAttribute("innerHTML"));
}
return array;
}
public ArrayList<String> getRemRemarkTooltips(){
ArrayList<String> array = new ArrayList<String>();
for(WebElement item: remRemarkCodeTooltips){
array.add(item.getAttribute("innerHTML")); }
return array;
}
}