Skip to content

Commit b2b5149

Browse files
committed
refactor: remove automated migration instructions for BrowserStack WebDriver
1 parent 2ed41a2 commit b2b5149

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/tools/sdk-utils/constants.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,6 @@ dependencies {
5252
}
5353
\`\`\`
5454
55-
**Automated Step:**
56-
To migrate your project to use BrowserStack, automatically replace all local WebDriver instantiations (such as \`new ChromeDriver()\`, \`new FirefoxDriver()\`, etc.) with the following BrowserStack RemoteWebDriver code:
57-
58-
\`\`\`java
59-
import org.openqa.selenium.remote.RemoteWebDriver;
60-
import org.openqa.selenium.MutableCapabilities;
61-
import java.net.URL;
62-
63-
MutableCapabilities capabilities = new MutableCapabilities();
64-
// Add any desired capabilities here
65-
66-
capabilities.setCapability("browserstack.user", System.getenv("BROWSERSTACK_USERNAME"));
67-
capabilities.setCapability("browserstack.key", System.getenv("BROWSERSTACK_ACCESS_KEY"));
68-
69-
WebDriver driver = new RemoteWebDriver(
70-
new URL("https://hub-cloud.browserstack.com/wd/hub"),
71-
capabilities
72-
);
73-
\`\`\`
74-
75-
You can use MCP or a code automation tool to:
76-
- Search for all occurrences of \`new ChromeDriver()\`, \`new FirefoxDriver()\`, \`new EdgeDriver()\`, and \`new SafariDriver()\` in your codebase.
77-
- Replace them with the above BrowserStack RemoteWebDriver code.
78-
7955
Inform user to export BROWSERSTACK_USERNAME=${config.browserstackUsername} and
8056
BROWSERSTACK_ACCESS_KEY=${config.browserstackAccessKey} as environment variables.
8157

0 commit comments

Comments
 (0)