Selenium Excel AddIn その2
絶賛調査中のこのアドイン。
こちらに日本語の説明へのリンクも載っています
http://selenium-excel-addin.jpn.org
日本語版と、英語版で情報量が異なっていますが何となく見るだけでもわかりますね。
で、調査の続きですが、どこを見てもヘルプの場所が載っていません。
エクセルからのオンラインヘルプをクリックしても表示されないので、絶賛作成中なのかもしれません。
が、ソースコードは公開されているので、のぞいてみることにします。
拡張子からするとC#で記述されているのではないかと思われます。
自分はC#の言語仕様がわからないので手当り次第にのぞいてみると
packages.config より
<package id="Selenium.Support" version="2.40.0" targetFramework="net40" /> <package id="Selenium.WebDriver" version="2.40.0" targetFramework="net40" /> <package id="Selenium.WebDriver.ChromeDriver" version="2.8.0.0" targetFramework="net40" /> <package id="Selenium.WebDriver.IEDriver" version="2.40.0.0" targetFramework="net40" />
ドライバーのバージョンは 2.40.0 になっている模様。
また、使用できるコマンドについては
TestCommandFactory.cs より
{ "AssertAlert", typeof(AssertAlertCommand) }, { "AssertAlertNotPresent", typeof(AssertAlertNotPresentCommand) }, { "AssertAlertPresent", typeof(AssertAlertPresentCommand) }, { "AssertAttribute", typeof(AssertAttributeCommand) }, { "AssertChecked", typeof(AssertCheckedCommand) }, { "AssertElementNotPresent", typeof(AssertElementNotPresentCommand) }, { "AssertElementPresent", typeof(AssertElementPresentCommand) }, { "AssertLocation", typeof(AssertLocationCommand) }, { "AssertNotAttribute", typeof(AssertNotAttributeCommand) }, { "AssertNotLocation", typeof(AssertNotLocationCommand) }, { "AssertNotText", typeof(AssertNotTextCommand) }, { "AssertNotTitle", typeof(AssertNotTitleCommand) }, { "AssertNotValue", typeof(AssertNotValueCommand) }, { "AssertNotVisible", typeof(AssertNotVisibleCommand) }, { "AssertText", typeof(AssertTextCommand) }, { "AssertTextNotPresent", typeof(AssertTextNotPresentCommand) }, { "AssertTextPresent", typeof(AssertTextPresentCommand) }, { "AssertTitle", typeof(AssertTitleCommand) }, { "AssertUnChecked", typeof(AssertUncheckedCommand) }, { "AssertValue", typeof(AssertValueCommand) }, { "AssertVisible", typeof(AssertVisibleCommand) }, { "Check", typeof(CheckCommand) }, { "ChooseCancelOnNextConfirmation", typeof(ChooseCancelOnNextConfirmationCommand) }, { "ChooseOkOnNextConfirmation", typeof(ChooseOkOnNextConfirmationCommand) }, { "Click", typeof(ClickCommand) }, { "ClickAndWait", typeof(ClickAndWaitCommand) }, { "Close", typeof(CloseCommand) }, { "Echo", typeof(EchoCommand) }, { "EndWhile", typeof(EndWhileCommand) }, { "GoBack", typeof(GoBackCommand) }, { "GoForward", typeof(GoForwardCommand) }, { "GotoIf", typeof(GotoIfCommand) }, { "GotoLabel", typeof(GotoLabelCommand) }, { "Label", typeof(LabelCommand) }, { "Open", typeof(OpenCommand) }, { "Pause", typeof(PauseCommand) }, { "Refresh", typeof(RefreshCommand) }, { "Select", typeof(SelectCommand) }, { "SelectFrame", typeof(SwitchFrameCommand) }, { "SelectWindow", typeof(SwitchWindowCommand) }, { "SendKeys", typeof(SendKeys) }, { "Store", typeof(StoreCommand) }, { "StoreText", typeof(StoreTextCommand) }, { "StoreValue", typeof(StoreValueCommand) }, { "Submit", typeof(SubmitCommand) }, { "Type", typeof(SendKeys) }, { "Uncheck", typeof(UncheckCommand) }, { "VBA", typeof(VBACommand) }, { "WaitForAlertNotPresent", typeof(WaitForAlertNotPresentCommand) }, { "WaitForAlertPresent", typeof(WaitForAlertPresentCommand) }, { "WaitForAttribute", typeof(WaitForAttributeCommand) }, { "WaitForChecked", typeof(WaitForCheckedCommand) }, { "WaitForElementNotPresent", typeof(WaitForElementNotPresentCommand) }, { "WaitForElementPresent", typeof(WaitForElementPresentCommand) }, { "WaitForLocation", typeof(WaitForLocationCommand) }, { "WaitForNotAttribute", typeof(WaitForNotAttributeCommand) }, { "WaitForNotLocation", typeof(WaitForNotLocationCommand) }, { "WaitForNotTextPresent", typeof(WaitForNotTextCommand) }, { "WaitForNotTitle", typeof(WaitForNotTitleCommand) }, { "WaitForNotValue", typeof(WaitForNotValueCommand) }, { "WaitForNotVisible", typeof(WaitForNotVisibleCommand) }, { "WaitForText", typeof(WaitForTextCommand) }, { "WaitForTextNotPresent", typeof(WaitForTextNotPresentCommand) }, { "WaitForTextPresent", typeof(WaitForTextPresentCommand) }, { "WaitForTitle", typeof(WaitForTitleCommand) }, { "WaitForUnchecked", typeof(WaitForUncheckedCommand) }, { "WaitForValue", typeof(WaitForValueCommand) }, { "WaitForVisible", typeof(WaitForVisibleCommand) }, { "While", typeof(WhileCommand) }, { "WindowMaximize", typeof(WindowMaximizeCommand) }, { "WindowMaximizeAndWait", typeof(WindowMaximizeAndWaitCommand) },
とあるので
- verify系のコマンドは無いこと
- gotoif系の flowControl で実装されている制御コマンドが導入されていること
- 独自拡張の vbaコマンド
あれ?キャプチャーコマンドが見当たりませんね。エビデンスとしてはキャプチャーを取得しているので機能的には持っているはずなのですが・・・・