Skip to content

Commit e3f110f

Browse files
Feat: Update testBrowserLiveChrome function to support desktop platform and improved response handling
1 parent 3eeb458 commit e3f110f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

tests/manual/manual_tests.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,19 @@ function testBrowserLive() {
134134

135135
function testBrowserLiveChrome() {
136136
desiredURL="https://www.whatsmybrowser.org/"
137-
response=$(npx @modelcontextprotocol/inspector -e BROWSERSTACK_USERNAME=$_BROWSERSTACK_USERNAME -e BROWSERSTACK_ACCESS_KEY=$_BROWSERSTACK_ACCESS_KEY --cli node dist/index.js --method tools/call --tool-name runBrowserLiveSession --tool-arg desiredBrowser='Chrome' --tool-arg desiredOSVersion='11' --tool-arg desiredURL="$desiredURL" --tool-arg desiredOS='Windows' --tool-arg desiredBrowserVersion='133.0')
138-
139-
if echo "$response" | grep -q "Successfully started a browser session"; then
137+
response=$(npx @modelcontextprotocol/inspector \
138+
-e BROWSERSTACK_USERNAME=$_BROWSERSTACK_USERNAME \
139+
-e BROWSERSTACK_ACCESS_KEY=$_BROWSERSTACK_ACCESS_KEY \
140+
--cli node dist/index.js \
141+
--method tools/call \
142+
--tool-name runBrowserLiveSession \
143+
--tool-arg platformType='desktop' \
144+
--tool-arg desiredBrowser='chrome' \
145+
--tool-arg desiredOSVersion='11' \
146+
--tool-arg desiredURL=$desiredURL \
147+
--tool-arg desiredOS='Windows' \
148+
--tool-arg desiredBrowserVersion='133.0')
149+
if echo "$response" | grep -q "Session started"; then
140150
log_success "Successfully started Chrome browser session"
141151
else
142152
log_failure "Failed to start Chrome browser session"

0 commit comments

Comments
 (0)