Category: Selenium with C#

Taking Screenshot using C# with Selenium

Taking screenshot  using C# with Selenium is very easy as it has a inbuilt function //Taking Screenshot in C# Screenshot ss = ((ITakesScreenshot)Browser).GetScreenshot(); string title = ScenarioContext.Current.ScenarioInfo.Title; string Runname = title + DateTime.Now.ToString(“yyyy-MM-dd-HH_mm_ss”); string...

Setting Cookie in Selenium C#

Sometimes Cookies needs to be set in Selenium so that it automatically loads up a page with predefined values or something else.And Selenium has inbuilt functionality which allows to set Cookies in any language...