SHARE
TWEET

Untitled

a guest Jun 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WebElement table = driver.findElement(_table3);
  2.  
  3.     List<WebElement> row = table.findElements(_row);
  4.  
  5.     System.out.println("Up to now I find  " + getTextFromElement(_row) + " element on page.");
  6.  
  7.     System.out.println("No of Rows: " + row.size());
  8.  
  9.     List<WebElement> cele = table.findElements(_cele);
  10.  
  11.     List<WebElement> celm = table.findElements(_celm);
  12.  
  13.     List<WebElement> cels = table.findElements(_cels);
  14.  
  15.     List<WebElement> celk = table.findElements(_celk);
  16.  
  17.     List<WebElement> celt = table.findElements(_celt);
  18.  
  19.     if (cele.contains(_cele)) {
  20.  
  21.         JavaScriptForScrolldown(_cele);
  22.  
  23.             javascriptexecutor(_cele);
  24.  
  25.     } else if(celm.contains(_celm)) {
  26.  
  27.         JavaScriptForScrolldown(_celm);
  28.  
  29.         javascriptexecutor(_celm);
  30.  
  31.     }else if (cels.contains(_cels)) {
  32.  
  33.         JavaScriptForScrolldown(_cels);
  34.  
  35.         javascriptexecutor(_cels);  
  36.  
  37.     }else if (celk.contains(_celk)) {
  38.  
  39.         JavaScriptForScrolldown(_celk);
  40.  
  41.         javascriptexecutor(_celk);
  42.  
  43.     }else {
  44.  
  45.         celt.contains(_celt);
  46.  
  47.         JavaScriptForScrolldown(_celt);
  48.  
  49.         javascriptexecutor(_celt);
  50.  
  51.         }      
  52.  
  53. }
  54.      
  55. WebElement tableI3 = driver.findElement(_tableI3);
  56.  
  57.     List <WebElement> row = tableI3.findElements(_row);
  58.  
  59.     System.out.println("Up to now I find  " + getTextFromElement(_row) +
  60.      
  61. System.out.println("No of Rows: " + row.size());
  62.  
  63.     List <WebElement> celd = tableI3.findElements(_cele);
  64.  
  65.     System.out.println("Up to now I find  " + getTextFromElement(_cele) +
  66.      
  67. System.out.println("No of Col: " + celd.size());
  68.  
  69.     JavaScriptForScrolldown(_addtobasket);
  70.  
  71.     javascriptexecutorelement(_cele, celd);    
  72.  
  73. }
  74.  
  75. public void selfprintticketdualfare() {
  76.  
  77.     WebElement element = driver.findElement(_tableI3);
  78.  
  79.     List <WebElement> row = element.findElements(_row);
  80.  
  81.     System.out.println("Up to now I find  " + getTextFromElement(_row) + " element on page.");
  82.  
  83.     System.out.println("No of Rows: " + row.size());
  84.  
  85.     List <WebElement> celsp = element.findElements(_cels);
  86.  
  87.     System.out.println("Up to now I find  " + getTextFromElement(_cels) + " element on page.");
  88.  
  89.     System.out.println("No of Cell: " + celsp.size());  
  90.  
  91.     JavaScriptForScrolldown(_addtobasket);
  92.  
  93.     javascriptexecutorelement(_cels, celsp);
  94.  
  95. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top