Skip to content

Commit

Permalink
fix CodeFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Dec 4, 2023
1 parent 8a1a1d8 commit 78a11fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class FantasticoBrochureDownloader(
private fun clickBrochure(dataId: String, waitDriver: WebDriverWait) {
log.info("Trying to click brochure with data-id: $dataId")
val cssSelector = By.cssSelector("div.hold-options[data-id='$dataId']")
waitDriver.until(ExpectedConditions.invisibilityOfElementLocated((By.className("preloader"))))
waitDriver.until(ExpectedConditions.invisibilityOfElementLocated(By.className("preloader")))
waitDriver.until(elementToBeClickable(cssSelector)).click()
// sleep a bit after clicking
TimeUnit.SECONDS.sleep(2)
Expand Down

0 comments on commit 78a11fd

Please sign in to comment.