Skip to content

Commit 2edf52f

Browse files
README
1 parent 2c20fb0 commit 2edf52f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This repository contains examples of how to run [Puppeteer](https://pptr.dev/) t
1111

1212
1. Clone this repository:
1313
```bash
14-
git clone https://github.com/yourusername/puppeteer-testingbot-example.git
14+
git clone https://github.com/testingbot/puppeteer-testingbot-example.git
1515
cd puppeteer-testingbot-example
1616
```
1717

@@ -67,7 +67,7 @@ When running tests on TestingBot with Puppeteer, you can use various options to
6767

6868
- **browserName**: Choose from Chrome, Edge, Firefox
6969
- **browserVersion**: Specify browser version (e.g., "latest", "*", "<=16")
70-
- **platform**: Select OS like WIN10, WIN11, SONOMA
70+
- **platform**: Select OS like WIN10, WIN11, SEQUOIA, LINUX
7171

7272
### Test Configuration
7373

@@ -96,23 +96,23 @@ When running tests on TestingBot with Puppeteer, you can use various options to
9696
Example usage:
9797

9898
```javascript
99+
const capabilities = {
100+
'tb:options': {
101+
key: process.env.TB_KEY,
102+
secret: process.env.TB_SECRET,
103+
name: 'Puppeteer Chrome Test'
104+
},
105+
browserName: 'chrome',
106+
browserVersion: 'latest',
107+
platform: 'WIN10',
108+
};
99109
const browser = await puppeteer.connect({
100-
browserWSEndpoint: `wss://${TB_KEY}:${TB_SECRET}@cloud.testingbot.com/puppeteer?browserName=chrome&browserVersion=latest&platform=WIN10&name=My%20Test&build=Build123&screenRecorder=true&timeZone=America/New_York&screen-resolution=1920x1080`
110+
browserWSEndpoint: `wss://cloud.testingbot.com/puppeteer?capabilities=${encodeURIComponent(JSON.stringify(capabilities))}`
101111
});
102112
```
103113

104114
For a complete list of options, visit the [TestingBot Puppeteer Options documentation](https://testingbot.com/support/puppeteer/options.html).
105115

106-
## GitHub Actions Integration
107-
108-
This repository includes a GitHub Actions workflow that runs the Chrome test on TestingBot. To use it, add your TestingBot credentials as GitHub secrets:
109-
110-
1. Go to your GitHub repository settings
111-
2. Navigate to Secrets > Actions
112-
3. Add two secrets:
113-
- `TB_KEY`: Your TestingBot key
114-
- `TB_SECRET`: Your TestingBot secret
115-
116116
## Learn More
117117

118118
- [TestingBot Puppeteer Documentation](https://testingbot.com/support/puppeteer)

0 commit comments

Comments
 (0)