0 references error throwing in VSTS selenium C# programming in Nunit -
using system; using system.collections.generic; using system.linq; using system.text; using nunit.framework; using openqa.selenium; using openqa.selenium.firefox; namespace fr_sel_supranet { [testfixture] public class trtests { //error: when run code displaying 0 references before [test] [test] public void tclogin() { string url = "https://kapsupranet01.test.suprakim.com/pages/kwm_203.aspx?member=33"; string loginname = "vs"; string password = "supraqa1!"; iwebdriver webdvr = new firefoxdriver(); webdvr.navigate().gotourl(url); webdvr.findelement(by.id("txtusername")).sendkeys(loginname); webdvr.findelement(by.id("txtpassword")).sendkeys(password); webdvr.findelement(by.id("btnlogin")).click(); } [test] public void tcmember() { } } }
this quote
//error: when run code displaying 0 references before [test]
and fail run code , error "the geckodriver.exe file not exist in current directory or in directory on path environment variable."
Comments
Post a Comment