selenium webdriver – Stuck with No Element Visible Exception in Serenity
Below is my serenity.conf file and I’m facing issue when I’m trying to run the test- no element visible exception:
drivers {
chrome_options.add_argument = "--headless;--disable-dev-shm-usage"
windows {
webdriver.chrome.driver = src/test/resources/webdriver/chromedriver.exe
}
linux {
webdriver.chrome.driver = src/test/resources/web_driver/linux/chromedriver
}
timeouts {
implicitlywait = 10000
fluentwait = 30000
}
}
environments {
prod {
webdriver.base.url = "https://www.card.ai/"
}
euro {
webdriver.base.url = "https://qa.normanisoy.com/"
}
web {
webdriver.base.url = "https://web.normy.com/"
}
webkorps {
webdriver.base.url = "https://qa.webkorps.com/"
}
}
webdriver {
driver = chrome
}
headless.mode = true
serenity {
serenity.restart.browser.for.each = never
take.screenshots = FOR_FAILURES
}
Getting below error after execution:
org.openqa.selenium.ElementNotInteractableException:
element not interactable
Chrome options can be defined using the chrome.switches property chrome.switches = """
--start-maximized;--test-type;--no-sandbox;--ignore-certificate-errors; --disable-popup-blocking;--disable-default-apps;
--disable-extensions-file-access-check; --incognito;--disable-infobars;--disable-gpu"""
Read more here: Source link