Automate with AI - OpenCode, Chrome DevTools MCP, WebDriver and Java
Description: In this video I use OpenCode, and the Chrome DevTools MCP server to write WebDriver Java code with Page Object abstractions for one of the Test Pages applications.
Here's what you'll learn:
- How to set up and configure OpenCode with free AI models and API keys.
- Switching between different AI models and comparing their results.
- Using Chrome DevTools MCP for accurate page analysis and locator identification.
- Iteratively refining prompts for better page object methods and test coverage.
- Strategies for validating dynamic page results, like checking cookie-based details and tolerating timing variations.
00:00 Getting Started
01:30 Model Setup
02:53 Creating Page Objects
04:26 Reviewing Results
06:53 Improving Test Coverage
09:41 Tracking User Visits
12:29 Final Thoughts
Associated blog post:
https://www.eviltester.com/blog/eviltester/testpages/opencode-generate-page-objects/
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon https://patreon.com/eviltester (watch my videos ad free and receive extra content)
I blog at https://eviltester.com/blog
Learn more about my books and online training at:
- https://eviltester.com
Follow me on:
- https://twitter.com/eviltester
- https://instagram.com/eviltester
- https://facebook.com/eviltester Close description
Here's what you'll learn:
- How to set up and configure OpenCode with free AI models and API keys.
- Switching between different AI models and comparing their results.
- Using Chrome DevTools MCP for accurate page analysis and locator identification.
- Iteratively refining prompts for better page object methods and test coverage.
- Strategies for validating dynamic page results, like checking cookie-based details and tolerating timing variations.
00:00 Getting Started
01:30 Model Setup
02:53 Creating Page Objects
04:26 Reviewing Results
06:53 Improving Test Coverage
09:41 Tracking User Visits
12:29 Final Thoughts
Associated blog post:
https://www.eviltester.com/blog/eviltester/testpages/opencode-generate-page-objects/
---
Remember to subscribe to this YouTube channel.
You can support me on Patreon https://patreon.com/eviltester (watch my videos ad free and receive extra content)
I blog at https://eviltester.com/blog
Learn more about my books and online training at:
- https://eviltester.com
Follow me on:
- https://twitter.com/eviltester
- https://instagram.com/eviltester
- https://facebook.com/eviltester Close description




