session not created from no such execution context: loader has changed while resolving nodes

666 views
Skip to first unread message

PREETHI MARINENI

unread,
Nov 22, 2023, 9:09:56 AM11/22/23
to Selenium Users
How do I resolve this , can anyone help me with some solutions

I have issue everyday only in Teamcity run, when I run in local I don't see this Issue. Its so frustrating, and I started hating this change for chrome with no solution I am able to find

Error:
org.openqa.selenium.SessionNotCreatedException: session not created
from no such execution context: loader has changed while resolving nodes
(Session info: chrome=116.0.5845.96)

Windows Server 2019

java.version: 20.0.2

seleniumversion 3.141.59

os.version: 10.0

testng 7.8.0

Suriya Elamparithy

unread,
Jan 9, 2024, 7:53:33 AM1/9/24
to Selenium Users
TRY THIS METHOD

public class Register {

public WebDriver driver;

@BeforeMethod
public void setup(Method method) {

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--remote-allow-origins=*");
this.driver = new ChromeDriver(chromeOptions);

driver.manage().window().maximize();
driver.manage().deleteAllCookies();
driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(30));
driver.get("https://suriyaparithy.blogspot.com/");
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(60));
Reply all
Reply to author
Forward
0 new messages