Unanswered question

Selenium C# integration With neoload error

Team,While integrating selenium SCript with neoload ,I am getting attached snapshot error .I have dowload chrome driver 74 version file from selenium site but still same error .Could anyone help on this.

Apart from this,Could anyone elaborate how we can integrated selenium C# script with neoload with each steps in detail so that i can understand as proper way(after running script , how can we associate script with neoload user path and how can we run script)

Thanks for hearing me in advance

Error Code :- // NUnit 3 tests
// See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using NeoLoadSelenium.neoload;
using NeoLoadSelenium.neoload.wrapper;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Remote;
using System;
using OpenQA.Selenium.Chrome;

namespace SeleniumCSharpProgramming
{
class TestClass
{
NLWebDriver driver;
[SetUp]
public void Initialize()
{
var options = new ChromeOptions();
NLWebDriverFactory.AddProxyCapabilitiesIfNecessary(options);
///provide chrome driver setup file path
var webDriver = new ChromeDriver(@"H:\SeleniumPracticeProject\SeleniumCSharpProgramming\SeleniumCSharpProgramming\Browser", options);
///create a sample neoload project and set project path
string projectPath = "C:\\Users\\Shiva\\Documents\\NeoLoad Projects\\SeleniumNeoloadDemo\\SeleniumNeoloadDemo.nlp";
//create a user path and give the user path name here
driver = NLWebDriverFactory.NewNLWebDriver(webDriver, "SeleniumUserPath");
}
[Test]
public void OpenAppTest()
{
driver.StartTransaction("home");
driver.Url = "http://ushahidi.demo.neotys.com/";;
driver.StopTransaction();
driver.StartTransaction("reports");
driver.FindElement(By.Id("mainmenu")).FindElements(By.TagName("a"))[1].Click();
driver.StopTransaction();
driver.StartTransaction("submit");
driver.FindElement(By.PartialLinkText("SUBMIT")).Click();
driver.StopTransaction();
}
[TearDown]
public void EndTest()
{
driver.Close();
driver.Quit();
}
}
}

AMIT G.
AMIT G.

AMIT G.

Level
0
14 / 100
points

Answers

Alexis N.
Alexis N.

Alexis N.

Level
2
1233 / 2000
points
Team

What is the version of Chrome installed? Your driver only support version 74. If you have the last Chrome version 79 or 80, this won't work, you need chrome driver 79 or 80.

AMIT G.
AMIT G.

AMIT G.

Level
0
14 / 100
points

I have tried both chrome 74 and 79 browser driver with same setup.but got same error .unable to execute simple test case which i got from official site .please any body help me please to understand selenium C# and appium C# integration with neoload as better way .please.Thanks Amit G