or
if (ButtonElement != null){ ButtonElement.ScrollToVisible(); ButtonElement.MouseHover(); ButtonElement.MouseClick();}Else { Do Something }Initialization method MyTests.InitializeTest threw exception.System.Configuration.ConfigurationErrorsException: System.Configuration.ConfigurationErrorsException:
An error occurred creating the configuration section handler for WebAii.Settings: Could not load file
or assembly 'ArtOfTest.WebAii' or one of its dependencies. The system cannot find the file specified.
(C:\MyTests\bin\Debug\TestResults\akharlamov 2011-01-30 12_53_49\Out\MyTests.dll.config line 5) --->
System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.WebAii' or one of its
dependencies.<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii" /> </configSections> <WebAii.Settings annotateExecution="true" baseUrl="http://local.mytests.com" clientReadyTimeout="50000" defaultBrowser="FireFox" enableScriptLogging="false" enableUILessRequestViewing="false" executionDelay="0" executionTimeout="60000" localWebServer="None" logLocation="C:\WebAiiLog\MyTests" queryEventLogErrorsOnExit="false" simulatedMouseMoveSpeed="1" webAppPhysicalPath="/" recycleBrowser="false" killBrowserProcessOnClose="true" /></configuration>mstest /testcontainer:MyTests.dll<section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii, Version=2.0.50727, Culture=neutral, PublicKeyToken=4fd5f65be123776c"/>