-3

The project works till a specific point where there its just freezing...

this is where it stops:

private def doActions(purchaseInfo: PurchaseInfo) = {
    driver.get(baseUrl)
    val addPur: WebElement = driver.findElement(By.id(addPurchLinkLocator))
    addPur.click()

this is happening:

    driver.get(baseUrl)

but addPur.click() is not happening and the browser is just hanging..

iv tried all the solutions in stackoverflow where they tell you to upgrade selenium or downgrade firefox....im stuck :/

Andrew Regan
  • 5,087
  • 6
  • 37
  • 73
JohnBigs
  • 2,691
  • 3
  • 31
  • 61

1 Answers1

-1

Try by Add Explicit wait statement after driver.get(baseUrl) till addPurchLinkLocator element is visible,Because page load might take time.