0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[T-DASH] IE mode in Edge でテスト自動化する

Last updated at Posted at 2024-06-07

Outline

IE (IE mode in Edge)で動作検証をしたいニーズがたまにある。
T-DASHは標準サポートはchrome、firefox、edgeである。

そのため、本記事ではIEで動作検証を行えるための解説になる。

https://service.valtes.co.jp/t-dash/?

事前準備

Edgeの設定

Edgeの設定を開く

「Internet Exploreモード(IE モード)でサイトの再読み込みを許可」を「許可」にする。

image.png

レジストリ変更

regedit を用いて、いくつか設定変更する必要がある。

コンピューター\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main

TabProcGrowth = 0 (DWORD)

image.png

コンピューター\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main

Isolation = PMIL (String)

image.png

コンピューター\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones

2500 = 3 (DWORD)

image.png

IEDriverServer

以下サイトから、The Internet Explorer Driver Server 32 bit Windows IE をダウンロードする。

その後、任意のパスに配置する

C:\DevTools\Selenium

image.png

T-DASH

カスタム動作

以下設定を、browser.yamlのファイル名で保存する

ACT-CAT-CUSTOM-29a71344-d653-4ca5-9cdf-746b517bd3b2:
  action_category_name: browser
  icon: ''
  color: '#a05c3e'
  custom_data:
    file_name: browser
    pip_list: []
    library_list:
    - SeleniumLibrary
  actions:
    ACT-CUSTOM-06e4bac0-c174-43cc-9ff9-7de107c2d8de:
      action_name: iemodeで開く
      action_type: operation
      action_format: iemodeでURL「設定値1」を開く
      action_note: ''
      action_args:
      - value1
      action_def:
      - - Set Test Variable
        - ${IEDriver}
        - C:/DevTools/Selenium/IEDriverServer.exe
      - - Set Test Variable
        - ${Edge}
        - C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe
      - - Open Browser
        - ${value1}
        - ie
        - executable_path=${IEDriver}
        - options=attach_to_edge_chrome=True;ignore_protected_mode_settings = True;edge_executable_path="${Edge}"
      - - Maximize Browser Window

次に、作成されたChromeOpti.yamlをT-DASHの動作定義 -> カスタム動作 -> カスタム動作をインポート にてインポートし、実際にインポートされた設定内容を開く

image.png

テストケース

「ie modeで開く」のカスタム動作を呼び出す

image.png

テスト実行

下図のように、ie modeでedgeが立ち上がる。
なお、テキスト入力などの操作は、不安定で遅くなります。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?