1

Topic: As using selenium to create the test on discovery Google Chrome Portable from defined fathers

How using selenium to create the test on discovery Google Chrome Portable from a certain folder?
Created the project in a Visual studio 2015
Connected library - WebDriver.dll
Connected (installed) Google Chrome Driver - chromedriver.exe
On #C wrote the code for the following scenario:
- Browser start;
- We open Google;
- We drive in the request text;
- We push "input";
How to make, that opened the browser being on the way c:\soft\\GoogleChromePortable\1\GoogleChromePortable.exe (was launched)?
I apply the code

using System;
using System. Collections. Generic;
using System. ComponentModel;
using System. Data;
using System. Drawing;
using System. Linq;
using System. Text;
using System. Threading. Tasks;
using System. Windows. Forms;
using OpenQA.Selenium;
namespace WindowsFormsApplication1
{
public partial class Form1: Form
{
IWebDriver Browser;
public Form1 ()
{
InitializeComponent ();
}
private void button1_Click (object sender, EventArgs e)
{
Browser = new OpenQA.Selenium. Chrome. ChromeDriver ();
Browser. Manage ().Window. Maximize ();
Browser. Navigate ().GoToUrl ("http://google.com");
IWebElement SearchInput = Browser. FindElement (By. Id ("lst-ib"));
SearchInput. SendKeys ("the project of houses" + OpenQA.Selenium. Keys. Enter);
}
private void button2_Click (object sender, EventArgs e)
{
}
}
}