Class ProblemList

java.lang.Object

public class ProblemList
extends Container
Represents Selenium component for workbench problem list.
  • Constructor Details

    • ProblemList

      public ProblemList​(UIContext context, org.openqa.selenium.WebElement problemListEl)
  • Method Details

    • getProblemListRows

      public java.util.List<org.openqa.selenium.WebElement> getProblemListRows​(java.lang.String problemName)
      Returns list of WebElement which corresponds to rows of given problem name.
      Parameters:
      problemName -
      Returns:
    • getProblemListRow

      public org.openqa.selenium.WebElement getProblemListRow​(java.lang.String problemName, int index)
      Returns WebElement for row of specified problem name and index.
      Parameters:
      problemName -
      index -
      Returns:
    • expandProblemSummary

      public boolean expandProblemSummary​(java.lang.String problemName, int index)
      Expands problem summary row for specified problem name and index.
      Parameters:
      problemName -
      index -
      Returns:
      false if problem summary is already expanded and true otherwise.
    • collapseProblemSummary

      public boolean collapseProblemSummary​(java.lang.String problemName, int index)
      Collapses problem summary row for specified problem name and index.
      Parameters:
      problemName -
      index -
      Returns:
      false if problem summary is already collapsed and true otherwise.
    • startWork

      public void startWork()
      Clicks on "Start Work" button of expanded/active problem summary. After calling startWork() API you should await for new tab and from new tab you can fetch ProblemDetail component. Example: Tab problemDetailTab = cc.awaitNewActiveTab(tab); ProblemDetail problemDetail = problemDetailTab.getProbelmDetail();
    • resume

      public void resume()
      Clicks on "Resume" button of expanded/active problem summary. After calling resume() API you should await for new tab and from new tab you can fetch ProblemDetail component. Example: Tab problemDetailTab = cc.awaitNewActiveTab(tab); ProblemDetail problemDetail = problemDetailTab.getProbelmDetail();
    • viewProblems

      public void viewProblems()
      Clicks on "View Problems" button of expanded/active problem summary. After calling viewProblems() API you should await for new tab and from new tab you can fetch ProblemDetail component. Example: Tab problemDetailTab = cc.awaitNewActiveTab(tab); ProblemDetail problemDetail = problemDetailTab.getProbelmDetail();
    • getActiveProblemRow

      public org.openqa.selenium.WebElement getActiveProblemRow()
      Returns currently expanded/active problem summary row.
    • getProblemSummary

      public org.openqa.selenium.WebElement getProblemSummary​(java.lang.String problemName, int index)
      Returns problem summary WebElement for specified problemName and index. It will expand row if it is not already expanded.
    • clickPageNo

      public void clickPageNo​(int pageNo)
      Clicks on specified page no from pagination of problem list.
      Parameters:
      pageNo -