You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: win/user-interaction.ps1
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -162,21 +162,21 @@ function Ask-BrowserStack-Credentials {
162
162
if ([string]::IsNullOrWhiteSpace($script:BROWSERSTACK_USERNAME) -or [string]::IsNullOrWhiteSpace($script:BROWSERSTACK_ACCESS_KEY)) {
163
163
throw"BROWSERSTACK_USERNAME / BROWSERSTACK_ACCESS_KEY must be provided in silent/debug mode."
164
164
}
165
-
Log-Line "✅ BrowserStack credentials loaded from environment for user: $script:BROWSERSTACK_USERNAME"$GLOBAL_LOG
165
+
Log-Line "✅ BrowserStack credentials loaded from environment for user: $script:BROWSERSTACK_USERNAME"$NOW_RUN_LOG_FILE
166
166
return
167
167
}
168
168
169
169
$script:BROWSERSTACK_USERNAME=Show-InputBox-Title "BrowserStack Setup"-Prompt "Enter your BrowserStack Username:`n`nLocate it on https://www.browserstack.com/accounts/profile/details"-DefaultText ""
170
170
if ([string]::IsNullOrWhiteSpace($script:BROWSERSTACK_USERNAME)) {
171
-
Log-Line "❌ Username empty"$GLOBAL_LOG
171
+
Log-Line "❌ Username empty"$NOW_RUN_LOG_FILE
172
172
throw"Username is required"
173
173
}
174
174
$script:BROWSERSTACK_ACCESS_KEY=Show-PasswordBox-Title "BrowserStack Setup"-Prompt "Enter your BrowserStack Access Key:`n`nLocate it on https://www.browserstack.com/accounts/profile/details"
175
175
if ([string]::IsNullOrWhiteSpace($script:BROWSERSTACK_ACCESS_KEY)) {
$testUrl=Show-InputBox-Title "Test URL Setup"-Prompt "Enter the URL you want to test with BrowserStack:`n(Leave blank for default: $DEFAULT_TEST_URL)"-DefaultText ""
233
233
if ([string]::IsNullOrWhiteSpace($testUrl)) {
234
234
$testUrl=$DEFAULT_TEST_URL
235
-
Log-Line "⚠️ No URL entered. Falling back to default: $testUrl"$GLOBAL_LOG
235
+
Log-Line "⚠️ No URL entered. Falling back to default: $testUrl"$NOW_RUN_LOG_FILE
236
236
} else {
237
-
Log-Line "🌐 Using custom test URL: $testUrl"$GLOBAL_LOG
237
+
Log-Line "🌐 Using custom test URL: $testUrl"$NOW_RUN_LOG_FILE
238
238
}
239
239
$script:CX_TEST_URL=$testUrl
240
240
}
@@ -321,7 +321,7 @@ function Ask-And-Upload-App {
321
321
return
322
322
}
323
323
$result=Invoke-SampleAppUpload
324
-
Log-Line "⚠️ Using auto-uploaded sample app: $($result.Url)"$GLOBAL_LOG
324
+
Log-Line "⚠️ Using auto-uploaded sample app: $($result.Url)"$NOW_RUN_LOG_FILE
325
325
$script:APP_URL=$result.Url
326
326
$script:APP_PLATFORM=$result.Platform
327
327
return
@@ -330,7 +330,7 @@ function Ask-And-Upload-App {
330
330
$choice=Show-OpenOrSampleAppDialog
331
331
if ([string]::IsNullOrWhiteSpace($choice) -or$choice-eq"Sample App") {
332
332
$result=Invoke-SampleAppUpload
333
-
Log-Line "⚠️ Using sample app: $($result.Url)"$GLOBAL_LOG
333
+
Log-Line "⚠️ Using sample app: $($result.Url)"$NOW_RUN_LOG_FILE
334
334
$script:APP_URL=$result.Url
335
335
$script:APP_PLATFORM=$result.Platform
336
336
return
@@ -339,7 +339,7 @@ function Ask-And-Upload-App {
339
339
$path=Show-OpenFileDialog-Title "📱 Select your .apk or .ipa file"-Filter "App Files (*.apk;*.ipa)|*.apk;*.ipa|All files (*.*)|*.*"
340
340
if ([string]::IsNullOrWhiteSpace($path)) {
341
341
$result=Invoke-SampleAppUpload
342
-
Log-Line "⚠️ No app selected. Using sample app: $($result.Url)"$GLOBAL_LOG
342
+
Log-Line "⚠️ No app selected. Using sample app: $($result.Url)"$NOW_RUN_LOG_FILE
0 commit comments