Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
CASE I "Save button not found on adding `org.apache.commons:commons-csv` dependence to Spark interpreter"
PR #860
https://travis-ci.org/apache/incubator-zeppelin/jobs/132702968
See attached Screenshot-860
23:18:41,898 ERROR org.apache.zeppelin.AbstractZeppelinIT:153 - Exception in ZeppelinIT while testSparkInterpreterDependencyLoading
org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
...
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:326)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at org.apache.zeppelin.integration.ZeppelinIT.testSparkInterpreterDependencyLoading(ZeppelinIT.java:209)
From ZeppelinIT.testSparkInterpreterDependencyLoading
String artifact = "org.apache.commons:commons-csv:1.1"; depArtifact.sendKeys(artifact); driver.findElement(By.xpath("//div[contains(@class,'box')][contains(.,'%spark')]//form//button[1]")).click();
Attachments
Attachments
Issue Links
- links to
I suppose this test is flaky due to XPath expression used to identify "Save" button on the interpreter page:
//div[contains(@class,'box')][contains(.,'%spark')]//form//button[1]
As one can see on attached code-screenshot - it is found in 2 places on the page for 2 spark interpreters,
and one is visible (that we are editing) and one is not.
My guess that it picks non-visible from time to time, and this way fails the test, as code logic is to wait until it becomes visible for 5 sec (in order the page to load), but this never happens as it's second one that is visible.