---
title: TestingBot Breakpoints to debug your flaky Selenium tests
description: |-
  Today TestingBot has added a new feature that should help you debug issues you encounter when running automated tests.

  Suppose you're running a te...
source_url:
  html: https://testingbot.com/blog/2015/09/28/testingbot-breakpoints-to-debug-your-flakey-selenium-tests
  md: https://testingbot.com/blog/2015/09/28/testingbot-breakpoints-to-debug-your-flakey-selenium-tests.md
---

# Flaky Selenium tests

By [Jochen D.](https://testingbot.com/about/jochen-d)2015-09-28

 Share on Facebook 

 Share on Twitter 

 Post on Reddit 

 Share link 

Today TestingBot has added a new feature that should help you debug issues you encounter when running automated tests.

Suppose you're running a test and you notice something isn't quite working well (AJAX request is failing, Javascript errors, ...).

When this happens, it'd be easy to simply pause the test, log in on the pristine virtual machine and start debugging with mouse and keyboard straight from your browser. You could fire up Developer Tools and inspect the javascript errors, or inspect the Ajax requests for problems.

With our new breakpoint feature, you can pause a running test at any time and immediately control the browser with your mouse and keyboard.

When your test starts running, it will appear in our [member dashboard](https://testingbot.com/members).

Navigating to the test detail page, you will see a "Breakpoint/Pause" button, if you click that the test will be paused and you will be able to control the browser from that page.

If you're looking to pause a test from within your test, that's possible as well. Suppose you're writing a test and need to inspect the browser at a specific point in your test, you can send TestingBot a command to pause the test.

Once the command is sent, you navigate to the test detail page and can immediately control the browser for debugging.

```ruby
require "rubygems"
require "selenium-webdriver"
require "selenium/client"

caps = {
  :browserName => "internet explorer",
  :version => "10",
  :platform => "WIN8"
}

urlhub = "http://key:secret@hub.testingbot.com/wd/hub"
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120

@webdriver = Selenium::WebDriver.for :remote, :url =&gt; urlhub, :desired_capabilities =&gt; caps, :http_client =&gt; client
@webdriver.manage.window.resize_to(800, 600)
@webdriver.navigate.to "https://testingbot.com"
if @webdriver.title != "TestingBot"
  # something is not right, pause this test so we can inspect on TestingBot
  @webdriver.execute_script("testingbot: break")
end
@webdriver.quit
```

We hope this new feature will help you with your Selenium tests. If you have any comments or suggestions, please let us know!

[← Previous post Selenium testing with Robot Framework](https://testingbot.com/blog/2015/09/23/selenium-testing-with-robot-framework) [Next post → TestingBot updates in October/November](https://testingbot.com/blog/2015/11/13/testingbot-updates-in-oktobernovember)

## Sidebar

### TestingBot Cloud Testing

Run automated, manual and visual tests on remote browsers and devices. Sign up for a free trial.

[Free Trial](https://testingbot.com/users/sign_up)

### Latest articles

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights)

#### Announcing AI Test Insights

Use AI Insights to quickly discover why an automated test...

[Read: Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright)

#### Selenium vs Playwright 2026

Comparing Selenium vs Playwright - which is the best test...

[Read: Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing)

#### Maestro Physical Device Testing

Maestro testing in parallel on physical Android and iOS d...

[Read: Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

## Related Articles

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights "Announcing AI Test Insights")

### [Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

Use AI Insights to quickly discover why an automated test failed.

[Read article →](https://testingbot.com/blog/ai-test-insights)

[![Selenium vs Playwright 2026](https://testingbot.com/assets/blog/2026/selenium-vs-playwright-2026.jpg)](https://testingbot.com/blog/selenium-vs-playwright "Selenium vs Playwright 2026")

### [Selenium vs Playwright 2026](https://testingbot.com/blog/selenium-vs-playwright)

Comparing Selenium vs Playwright - which is the best test framework for your usecase?

[Read article →](https://testingbot.com/blog/selenium-vs-playwright)

[![Selenium 20th birthday](https://testingbot.com/assets/blog/2024/selenium20.webp)](https://testingbot.com/blog/selenium-20-years "Selenium 20th birthday")

### [Selenium 20th birthday](https://testingbot.com/blog/selenium-20-years)

Celebrate Selenium's 20th birthday. An overview of the years.

[Read article →](https://testingbot.com/blog/selenium-20-years)

[![ChromeOS Cloud Testing](https://testingbot.com/assets/blog/2025/chromeos.jpg)](https://testingbot.com/blog/chromeos-testing "ChromeOS Cloud Testing")

### [ChromeOS Cloud Testing](https://testingbot.com/blog/chromeos-testing)

ChromeOS Manual and Automated testing in the cloud.

[Read article →](https://testingbot.com/blog/chromeos-testing)

## More by Jochen D.

[![Announcing AI Test Insights](https://testingbot.com/assets/blog/2026/ai-insights.jpg)](https://testingbot.com/blog/ai-test-insights "Announcing AI Test Insights")
### [Announcing AI Test Insights](https://testingbot.com/blog/ai-test-insights)

Use AI Insights to quickly discover why an automated test failed.

[![Maestro Physical Device Testing](https://testingbot.com/assets/blog/2026/maestro-physical.jpg)](https://testingbot.com/blog/maestro-physical-device-testing "Maestro Physical Device Testing")
### [Maestro Physical Device Testing](https://testingbot.com/blog/maestro-physical-device-testing)

Maestro testing in parallel on physical Android and iOS devices.

[![tvOS Physical Device Testing](https://testingbot.com/assets/blog/2025/appletv.jpg)](https://testingbot.com/blog/tvos-automated-testing "tvOS Physical Device Testing")
### [tvOS Physical Device Testing](https://testingbot.com/blog/tvos-automated-testing)

Run automated tvOS tests on physical AppleTV devices.

[See all posts by Jochen D. →](https://testingbot.com/about/jochen-d)

## Ready to start testing?
[Start a free trial](https://testingbot.com/users/sign_up)
