Data Driven Framework Error on exection | Selenium Webdriver Tutorial with c# |Selenium C# training
10% June Month Discount Avail now

Selenium C# Training Forum

Data Driven Framework Error on exection

S
Shreekanth Post on 08/01/2019

Hi,

Followed the first video to build DDF Framework dummy test cases and base class successfully. When I execute first test case, I am getting this error in line "test method"

Test Name: TestMethod
Test FullName: DataDrivenTest.TestCases.TestCase1.TestMethod
Test Source: C:\Users\Talarisr02\source\repos\DataDrivenTest\DataDrivenTest\TestCases\TestCase1.cs : line 14
Test Outcome: Failed
Test Duration: 0:00:03.145

Result StackTrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 1353
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 1112
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 1080
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) in c:\Projects\webdriver\dotnet\src\webdriver\Remote\RemoteWebDriver.cs:line 119
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeOptions options) in c:\Projects\webdriver\dotnet\src\webdriver\Chrome\ChromeDriver.cs:line 76
at OpenQA.Selenium.Chrome.ChromeDriver..ctor() in c:\Projects\webdriver\dotnet\src\webdriver\Chrome\ChromeDriver.cs:line 67
at DataDrivenTest.BaseTest.OpenBrowser() in C:\Users\Talarisr02\source\repos\DataDrivenTest\DataDrivenTest\BaseTest.cs:line 18
at DataDrivenTest.TestCases.TestCase1.TestMethod() in C:\Users\Talarisr02\source\repos\DataDrivenTest\DataDrivenTest\TestCases\TestCase1.cs:line 16
Result Message:
System.InvalidOperationException : session not created exception
from unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"8F67EA228C8E6DED6DD88B6680F33201","isDefault":true,"type":"default"},"id":1,"name":"","origin":"://"}
(Session info: chrome=71.0.3578.98)
(Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.3 x86_64) (InsecureCertificate)

 

S
Shreekanth Reply on 08/01/2019

Fixed. I forgot to add CHROMEDRIVER from Nuggetpackage. It works now