---
title: クラウドでのSeleniumの自動化
description: TestingBotは、クラウドベースのSeleniumグリッドを提供します。 SeleniumWebDriverテストをブラウザーとデバイスのオンライングリッドに接続します。
source_url:
  html: https://ja.testingbot.com/features/automation/selenium
  md: https://ja.testingbot.com/features/automation/selenium.md
---

Selenium WebDriver 
# Seleniumクラウド自動化

Selenium WebDriverテストを6100以上の実際のブラウザとiOSおよびAndroidの実機で実行できます。大規模な並列処理、ビデオおよびログアーティファクト、そして99.9%の稼働率SLAを備えた実績のあるインフラストラクチャを提供します。

フレームワークを比較検討中ですか？ [PlaywrightとSeleniumの](https://ja.testingbot.com/playwright-vs-selenium)比較については、こちらをご覧ください。

[無料で始める](https://ja.testingbot.com/users/sign_up) [デモをリクエストする](https://testingbot.com/demo)

- **ブラウザとデバイス:** 6100+
- **Seleniumのバージョン:** 全て
- **稼働時間SLA:** 99.9%

_Selenium tests running on Chrome, Firefox, Safari, Edge, Opera, Samsung, iOS and Android via TestingBot's cloud hub_

世界で最も革新的な企業のいくつかから信頼されています

 5ライン設定 
## 既存のテストを当社のハブに向ける

必要なのはURLの変更だけです。既存のSelenium WebDriverコードを再利用し、当社のクラウド上で実行すれば、機能を通じてあらゆるブラウザ、OS、デバイスを選択できます。

 hub.testingbot.com Copy

 JavaScript Python Java Ruby C# PHP 

```javascript
// Run a Selenium test on the TestingBot grid
const wd = require('selenium-webdriver');

const driver = await new wd.Builder()
  .usingServer('https://hub.testingbot.com/wd/hub')
  .withCapabilities({
    'tb:options': { name: 'Checkout flow' },
    browserName: 'chrome',
    browserVersion: 'latest',
    platformName: 'Windows 11'
  })
  .build();

await driver.get('https://example.com');
await driver.quit();
```

```python
# Run a Selenium test on the TestingBot grid
from selenium import webdriver

options = webdriver.ChromeOptions()
options.set_capability('tb:options', {'name': 'Checkout flow'})
options.set_capability('browserVersion', 'latest')
options.set_capability('platformName', 'Windows 11')

driver = webdriver.Remote(
    command_executor='https://hub.testingbot.com/wd/hub',
    options=options
)

driver.get('https://example.com')
driver.quit()
```

```java
// Run a Selenium test on the TestingBot grid
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("browserName", "chrome");
caps.setCapability("browserVersion", "latest");
caps.setCapability("platformName", "Windows 11");

WebDriver driver = new RemoteWebDriver(
    new URL("https://hub.testingbot.com/wd/hub"),
    caps
);

driver.get("https://example.com");
driver.quit();
```

```ruby
# Run a Selenium test on the TestingBot grid
require 'selenium-webdriver'

caps = Selenium::WebDriver::Remote::Capabilities.chrome(
  browserVersion: 'latest',
  platformName: 'Windows 11',
  'tb:options' => { name: 'Checkout flow' }
)

driver = Selenium::WebDriver.for(:remote,
  url: 'https://hub.testingbot.com/wd/hub',
  capabilities: caps
)

driver.get 'https://example.com'
driver.quit
```

```csharp
// Run a Selenium test on the TestingBot grid
var options = new ChromeOptions();
options.AddAdditionalOption("browserVersion", "latest");
options.AddAdditionalOption("platformName", "Windows 11");

IWebDriver driver = new RemoteWebDriver(
    new Uri("https://hub.testingbot.com/wd/hub"),
    options
);

driver.Navigate().GoToUrl("https://example.com");
driver.Quit();
```

```php
// Run a Selenium test on the TestingBot grid
$capabilities = DesiredCapabilities::chrome();
$capabilities->setCapability('browserVersion', 'latest');
$capabilities->setCapability('platformName', 'Windows 11');

$driver = RemoteWebDriver::create(
    'https://hub.testingbot.com/wd/hub',
    $capabilities
);

$driver->get('https://example.com');
$driver->quit();
```

Connected · [Dokumentation anzeigen](https://testingbot.com/support/web-automate/selenium/nodejs) [Dokumentation anzeigen](https://testingbot.com/support/web-automate/selenium/python) [Dokumentation anzeigen](https://testingbot.com/support/web-automate/selenium/java) [Dokumentation anzeigen](https://testingbot.com/support/web-automate/selenium/ruby) [Dokumentation anzeigen](https://testingbot.com/support/web-automate/selenium/csharp) [Dokumentation anzeigen](https://testingbot.com/support/web-automate/selenium/php) 

 ![試験結果](https://ja.testingbot.com/assets/features/test-results-315382c39a67ad52167d2a4fd78570c99aea3e0ec386c17e82265851e93cb7b3.png)

 Test Results 
## 試験結果

各Seleniumテスト結果には、テストのスクリーンショット、ログ、およびビデオが付属しています。

Seleniumテストを合格または不合格としてマークし、REST-APIを介してテストアーティファクトを取得し、さまざまな[統合](https://ja.testingbot.com/integrations)を介してテスト結果を接続します。

次のようなさまざまなオプションを指定して、Seleniumセッションをカスタマイズします。

- カスタムSeleniumバージョン（Selenium 4 + W3Cサポートが利用可能で、今後のWebDriver BiDi）
- カスタム画面解像度
- カスタムタイムゾーン
- ジオロケーションの変更
- ブラウザの起動フラグ[など](https://testingbot.com/support/web-automate/selenium/test-options)

 言語とフレームワーク 
## セレンの統合

TestingBotは、さまざまなテストフレームワークおよびサービスと統合されます。既存のSeleniumテストを簡単に変換し、お気に入りのCI/CDに接続します。

- ### [Java](https://testingbot.com/support/web-automate/selenium/java)

  - [JUnit](https://testingbot.com/support/web-automate/selenium/java/junit)
  - [Parallel JUnit](https://testingbot.com/support/web-automate/selenium/java/parallel-junit)
  - [TestNG](https://testingbot.com/support/web-automate/selenium/java/testng)
  - [Selenide](https://testingbot.com/support/web-automate/selenium/java/selenide)

- ### [Python](https://testingbot.com/support/web-automate/selenium/python)

  - [PyTest](https://testingbot.com/support/web-automate/selenium/python/pytest)
  - [PyUnit](https://testingbot.com/support/web-automate/selenium/python/pyunit)
  - [Behave](https://testingbot.com/support/web-automate/selenium/python/behave)
  - [Helium](https://testingbot.com/support/web-automate/selenium/python/helium)

- ### [JavaScript](https://testingbot.com/support/web-automate/selenium/nodejs)

  - [WebDriverIO](https://testingbot.com/support/web-automate/selenium/nodejs/webdriverio)
  - [Nightwatch](https://testingbot.com/support/web-automate/selenium/nodejs/nightwatch)
  - [Protractor](https://testingbot.com/support/web-automate/selenium/nodejs/protractor)
  - [TestCafe](https://testingbot.com/support/web-automate/selenium/nodejs/testcafe)

- ### [Ruby](https://testingbot.com/support/web-automate/selenium/ruby)

  - [RSpec](https://testingbot.com/support/web-automate/selenium/ruby/rspec)
  - [Cucumber](https://testingbot.com/support/web-automate/selenium/ruby/cucumber)
  - [Minitest](https://testingbot.com/support/web-automate/selenium/ruby/minitest)
  - [Test::Unit](https://testingbot.com/support/web-automate/selenium/ruby/testunit)

- ### [C#](https://testingbot.com/support/web-automate/selenium/csharp)

  - [NUnit](https://testingbot.com/support/web-automate/selenium/csharp/nunit)
  - [MSTest](https://testingbot.com/support/web-automate/selenium/csharp/mstest)
  - [xUnit](https://testingbot.com/support/web-automate/selenium/csharp/xunit)
  - [SpecFlow](https://testingbot.com/support/web-automate/selenium/csharp/specflow)

- ### [PHP](https://testingbot.com/support/web-automate/selenium/php)

  - [PHPUnit](https://testingbot.com/support/web-automate/selenium/php/phpunit)
  - [Codeception](https://testingbot.com/support/web-automate/selenium/php/codeception)
  - [Behat](https://testingbot.com/support/web-automate/selenium/php/behat-mink)
  - [SimpleTest](https://testingbot.com/support/web-automate/selenium/php/simpletest)

コードを記述せずにテストを実行したいですか？ [Selenium IDE](https://testingbot.com/support/web-automate/codeless-automation/add-test)でテストを記録し、スケジュールされた実行のためにコードレス自動化にアップロードします。

 大規模並列処理 
## 並列テスト

テストを同時に実行することで、Seleniumの合計テスト期間を大幅に短縮します。 TestingBotは、速度と安定性のために最適化された、Windows、Linux、およびmacOSでの使い捨てVMを提供します。

- 最大100の同時Seleniumセッション
- 行列なし、ウォーミングアップなし。セッションは数秒で開始。
- 自動再試行とインテリジェントなテストシャーディング

[無料で始める](https://ja.testingbot.com/users/sign_up)

 ![並列テスト](https://ja.testingbot.com/assets/features/selenium/parallel-0229d698e59a8a6b92fe50344a08634624f018331ecf8a849ef83cfb35e635a5.png)

Live exit nodes
10+ countries

アメリカ合衆国

イギリス

ドイツ

フランス

スペイン

ベルギー

オーストラリア

中国

日本

 位置情報テスト 
## ジオロケーションテスト

世界中のさまざまな地域で **ジオロケーションテスト** を実行します。オーストラリア、ベルギー、英国、米国、ドイツ、フランス、スペイン、中国などを含む10か国で、ジオターゲティング、ジオブロッキング、ジオローカリゼーションをテストします。

 安全なインフラストラクチャ 
## 正確なテスト

テストは、実際のオペレーティングシステムの安全なデータセンターで実行されます。各テストは、テストの終了後に破棄される専用の使い捨てVMで実行されます。

当社のインフラストラクチャは、パフォーマンスとテストの不安定さを抑えるために最適化されています。

- セッションごとに消去される使い捨ての仮想マシン
- GDPR準拠、EUデータレジデンシー対応
- SAML SSO、監査ログ、およびSCIMプロビジョニング

[TestingBotトラストセンターにアクセス](https://trust.testingbot.com/)

1. 1

Test connects to `hub.testingbot.com`

A pristine VM is provisioned in seconds, just for your session.

2. 2

Your Selenium commands run on real hardware

Real Windows, macOS or Linux — never simulated, never shared.

3. 3

VM destroyed the moment your test ends

Cookies, files, browser state — all wiped. Nothing is ever reused.

 継続的インテグレーション 
## CI/CDサービスとの統合

TestingBotは、Jenkins、Bamboo、TeamCity、Circle CI、GitLabCIなどの最も人気のあるCI/CDサービスと統合されています。

 ![Jenkins](https://ja.testingbot.com/assets/integrations/jenkins-e586a1c4af833e4c8d38d7b392a4e84bd193f30cae9cf8c9f198a58ec943a1ff.webp)

### [Jenkins](https://testingbot.com/support/integrations/ci-cd/jenkins)

 ![Bamboo](https://ja.testingbot.com/assets/integrations/bamboo-c8fe09a3cb0b74d6055e3aa6607d77720bfe29ff487b8e3cf825138adf634346.svg)

### [Bamboo](https://testingbot.com/support/integrations/ci-cd/bamboo)

 ![TeamCity](https://ja.testingbot.com/assets/integrations/teamcity-7e75cdb835903a4983ad276c41d95e569ceac5be486e96ec1f955029ce5bb319.svg)

### [TeamCity](https://testingbot.com/support/integrations/ci-cd/teamcity)

 ![CircleCI](https://ja.testingbot.com/assets/integrations/circleci-ede029654ff39b60342e4a5bba8fc9a3a49305cc38bda215b7cf8d07e85e0543.webp)

### [CircleCI](https://testingbot.com/support/integrations/ci-cd/circleci)

 ![GitLab CI](https://ja.testingbot.com/assets/integrations/gitlab-e4c0b6db07d07bc0a400f5606e258f4dc8a51b778e97bbfa51d1d531f3cb049a.webp)

### [GitLab CI](https://testingbot.com/support/integrations/ci-cd/gitlab)

 ![GitHub](https://ja.testingbot.com/assets/integrations/github-actions-8436242ad9e15381f84f1a98a10dddce15611087f121d6305782e211942b7842.webp)

### [GitHub](https://testingbot.com/support/integrations/ci-cd/github-actions)

 モバイルセレニウム 
## モバイルテスト

物理的なiOSおよびAndroidモバイルデバイス、またはiOSシミュレーターおよびAndroidエミュレーターでテストします。ジオロケーションをサポートして、さまざまなモバイルデバイスとバージョンでWebサイトの機能とUIをテストします。

[デバイスの表示](https://testingbot.com/support/app-automate/devices)

 ![Test online on iPhone 17 Pro](https://ja.testingbot.com/assets/devices/160h/44-6b4402c6996d9b1620879bb1123c40a6b36abb064e65dca0a1b3f05286779e9c.webp)

iPhone 17 Pro

 ![Test online on iPhone 17 Pro Max](https://ja.testingbot.com/assets/devices/160h/43-59d7e30684332ed4bf25567cbc09ca942eac46d925ccde8352d3e85812480f7d.webp)

iPhone 17 Pro Max

 ![Test online on iPhone 16 Pro](https://ja.testingbot.com/assets/devices/160h/42-de3704079345026847b739a5b1cf5332595904e54ede66abd988a76fb1e6593c.webp)

iPhone 16 Pro

 ![Test online on iPad (9th generation)](https://ja.testingbot.com/assets/devices/160h/41-70f7d18afde7620063a49a76cbfd088f8b59c742f3a5f4dd4a513dd6ec5c676c.webp)

iPad (9th generation)

 ![Test online on Galaxy S26](https://ja.testingbot.com/assets/devices/160h/40-e917ed08e15b5941fed75855ac457dd1df46b471a2020f081c4d70cefb68f4e8.webp)

Galaxy S26

 ![Test online on Huawei P40](https://ja.testingbot.com/assets/devices/160h/39-32a788c7e66a3da1c88eaaefefd37381f729e510f096b43906968b6907c44c57.webp)

Huawei P40

 Secure Tunnel 
## 内部アプリとステージングアプリを安全にテストする

ファイアウォールで保護されたステージングサイト、社内ダッシュボード、またはローカルホスト上のアプリケーションに対してSeleniumテストを実行するには、当社の[セキュアトンネルを](https://testingbot.com/support/tunnel)ご利用ください。

エンドツーエンド暗号化、受信ファイアウォールルール不要、主要なCIプロバイダーへの組み込みサポート。

 ![TestingBot secure tunnel for Selenium](https://ja.testingbot.com/assets/features/tunnel-diagram-poster-8c25e19e6fe4f7276a46a96b31a0ad0e07bb4f5bf98dc192d2b70897cfbb1a26.png)

[続きを読む](https://ja.testingbot.com/support/tunnel)

 購入か建築か 
## TestingBotとセルフホスト型Seleniumグリッドの比較

独自のSeleniumグリッドを運用するのは安価に思えるかもしれませんが、メンテナンス、不安定性、そして不足しているデバイスを考慮するとそうはいきません。ホスト型Seleniumクラウドとの比較は以下のとおりです。

| 能力 | テストボット | セルフホスト型Selenium Grid |
| --- | --- | --- |
| ブラウザのカバー範囲 | 6100以降のブラウザ、すべての主要バージョン、毎週更新 | 自分でプロビジョニングしてパッチを適用するものに限定されます |
| 最初のテストの時間 | 数分で、コード内のURLを1つ変更します。 | グリッドのセットアップと調整に数日から数週間かかる |
| 本物のiOSとAndroid | オンデマンドの実際の物理デバイス | 別途デバイスラボが必要 |
| 並列スケーリング | 最大100セッション同時接続可能（オンデマンド） | ハードウェア予算によって上限が決まる |
| ビデオとログ | ビデオ、ネットワーク、ブラウザ、Seleniumのログが含まれています。 | 独自の録音・ログ集約システムを構築する |
| 信頼性 | 稼働率99.9%のSLA、24時間365日の監視 | あなたはオンコールエンジニアです |
| サポート | 24時間365日の人的サポートと専任のカスタマーサクセスマネージャー | Stack Overflowとあなた自身のログ |

よくある質問
## TestingBotにおけるSeleniumに関するよくある質問

クラウドベースのSeleniumグリッドとは何ですか？

クラウドベースのSeleniumグリッドは、 `https://hub.testingbot.com/wd/hub`エンドポイント経由で接続する、管理されたブラウザノードのプールです。既存のSelenium WebDriverコードはそのまま使用でき、変更されるのはリモートURLといくつかの機能のみです。TestingBotがOSイメージ、ブラウザのインストール、スケーリング、記録処理をすべて自動で行います。

TestingBotはどのSeleniumバージョンをサポートしていますか？

TestingBotは、Selenium 2.xおよび3.xからSelenium 4、Selenium BiDiまで、現在も使用されているすべてのSeleniumバージョンをサポートしています。`se:options`または`tb:options`機能を使用すると、テストごとに特定のサーバーバージョンを指定できます。

Seleniumテストを並列実行することはできますか？

はい。TestingBotのプランでは、最大100個のSeleniumセッションを並列実行できます。各セッションは専用の仮想マシンで実行されるため、テスト同士が干渉することなく、並列処理による不安定性も発生しません。

TestingBotはSelenium 4およびBiDiに対応していますか？

完全に対応しています。当社のハブはSelenium 4 W3C WebDriverに対応しており、リアルタイムログ、ネットワーク傍受、認証処理などの高度な機能を実現する新しい[Selenium BiDiプロトコル](https://testingbot.com/support/web-automate/selenium/selenium-bidi)をサポートしています。

既存のSeleniumテストをTestingBotに移行するにはどうすればよいですか？

リモートURLを`https://hub.testingbot.com/wd/hub`に変更し、TestingBotの認証情報を追加して、機能設定からブラウザとOSを選択してください。各言語での手順例については、 [移行ガイド](https://testingbot.com/support/web-automate/selenium/migrate-existing-tests)をご覧ください。

内部サイトやステージングサイトをテストできますか？

はい、弊社の[セキュアトンネル](https://testingbot.com/support/tunnel)をインストールすれば、Seleniumテストはステージング環境、ローカルホストサーバー、またはファイアウォールの内側にあるあらゆる場所に、受信ルールを一切設定することなくアクセスできます。

TestingBotは、私のSeleniumテストの動画とログを記録しますか？

Seleniumセッションはすべて、フルHDビデオ、ステップバイステップのSeleniumコマンド、ブラウザコンソールログ、ネットワークHARファイル、スクリーンショットとともに記録されます。成果物はダッシュボードまたはCI統合用のREST API経由でアクセスできます。

Selenium GridはSOC 2/GDPRに準拠していますか？

TestingBotはGDPRに準拠し、EU域内にデータ拠点を置き、ISO 27001に準拠、STARレベル1認証を取得しています。エンタープライズプランでは、SAML SSO、SCIM、監査ログを提供しています。

## TestingBotを愛する理由

### 24時間365日サポート

ご質問はございますか？24時間年中無休のアプリ内[チャットサポートを](https://ja.testingbot.com#)ご利用いただくか、[メールでお問い合わせください](https://ja.testingbot.com/contact/new)。喜んでお手伝いさせていただきます！

TestingBot サポート

こんにちは👋 何かお手伝いしましょうか？

I need support

### 14,000以上のチームから信頼されています

6M+

テスト

120k+

ユーザー

400+

企業

106

国

[デモをリクエストする](https://testingbot.com/demo)

### 開発者向けドキュメント

TestingBotをワークフローに統合するために必要なものがすべて揃っています。Webテストとモバイルテスト用のガイド、APIリファレンス、SDKをご覧ください。

- [Selenium Quickstart Documentation](https://testingbot.com/support/web-automate/selenium)
- [Selenium 4](https://testingbot.com/support/web-automate/selenium/selenium4)
- [Selenium BiDi](https://testingbot.com/support/web-automate/selenium/selenium-bidi)
- [CI/CD integration](https://testingbot.com/support/integrations/ci-cd)

[ドキュメントを見る](https://testingbot.com/support)

### エンタープライズグレードのセキュリティ

STAR Level 1

Certified

GDPR

Compliant

SAML SSO

Single Sign-On

99.9%

Uptime SLA

[TestingBotトラストセンターにアクセス](https://trust.testingbot.com/)

## Seleniumテストを加速する準備はできましたか？

開始方法については、 [Seleniumテスト](https://testingbot.com/support/web-automate/selenium)のドキュメントを参照してください。

[無料トライアルを開始する](https://ja.testingbot.com/users/sign_up)

あなたが好きかもしれないリソース

[![Selenium and Generative AI](https://ja.testingbot.com/assets/resources/articles/28-af707bf052844eb00f861bb6ebba57e6be4479dde1c78a5df4e70d2f597a8b18.webp)](https://testingbot.com/resources/articles/generative-ai-selenium)
### [Selenium and Generative AI](https://testingbot.com/resources/articles/generative-ai-selenium)

Generate realistic looking test data to be used with your Selenium Automated Tests.

[続きを読む](https://testingbot.com/resources/articles/generative-ai-selenium)

[![Selenium 4: what's new](https://ja.testingbot.com/assets/blog/2021/se4.webp)](https://testingbot.com/blog/selenium-4)
### [Selenium 4: what's new](https://testingbot.com/blog/selenium-4)

Learn more about what is new Selenium 4.

[続きを読む](https://testingbot.com/blog/selenium-4)

[![Selenium WebDriver BiDi](https://ja.testingbot.com/assets/blog/2024/bidi.webp)](https://testingbot.com/blog/webdriver-bidi)
### [Selenium WebDriver BiDi](https://testingbot.com/blog/webdriver-bidi)

WebDriver BiDi support is now available on TestingBot. Learn how to use this exciting new improvement with your Selenium tests.

[続きを読む](https://testingbot.com/blog/webdriver-bidi)
