froth-webdriverio-framework 6.0.59 → 6.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/froth_configs/browserstack/mobile.config.js +13 -15
- package/froth_configs/commonhook.js +29 -21
- package/froth_configs/setallDatailinBuffer.js +6 -6
- package/local.log +0 -0
- package/log/key-metrics.json +160 -0
- package/log/sdk-cli-debug.log +1343 -0
- package/log/sdk-cli.log +876 -0
- package/package.json +1 -1
package/log/sdk-cli.log
CHANGED
|
@@ -13635,3 +13635,879 @@
|
|
|
13635
13635
|
2025-12-13T13:16:11.393Z CLI info [sdk:service] [naveen_OSt3Pw] [gczaftafpkg5vme268kwqjmbnfmh3blldrrif1jp] [19e5b5ca-8dc9-4e9f-91e7-dc7a8f008c46] Driver initialized as primary driver: platformIndex=0
|
|
13636
13636
|
2025-12-13T13:16:11.648Z CLI info [naveen_OSt3Pw] [gczaftafpkg5vme268kwqjmbnfmh3blldrrif1jp] [19e5b5ca-8dc9-4e9f-91e7-dc7a8f008c46] [PRODUCTION] Making GET request to https://hub-usw.browserstack.com
|
|
13637
13637
|
2025-12-13T13:16:24.424Z CLI info [main] [naveen_OSt3Pw] [gczaftafpkg5vme268kwqjmbnfmh3blldrrif1jp] [19e5b5ca-8dc9-4e9f-91e7-dc7a8f008c46] Received graceful signal termination, performing cleanup
|
|
13638
|
+
2025-12-13T13:42:38.433Z CLI info Config : {"userName":"[REDACTED]","accessKey":"[REDACTED]","platforms":[{"platformName":"android","projectName":"BrowserStack Samples","buildName":"browserstack build","sessionName":"Mobile Test","deviceName":"Google Pixel 9","osVersion":"16.0","debug":true,"networkLogs":true,"interactiveDebugging":true,"wdioService":"9.20.1"}],"isNonBstackA11yWDIO":false,"buildIdentifier":"test","browserstackLocal":false,"accessibility":null,"testObservability":true,"browserStackLocalOptions":{"forcelocal":false,"localIdentifier":"wdio-30505"},"testContextOptions":{"skipSessionName":false,"skipSessionStatus":false,"sessionNameOmitTestTitle":false,"sessionNamePrependTopLevelSuiteTitle":false,"sessionNameFormat":""},"buildTag":[]}
|
|
13639
|
+
2025-12-13T13:42:38.445Z CLI info Should start debug utility: undefined
|
|
13640
|
+
2025-12-13T13:42:38.498Z CLI info [testhub:module] [naveen_OSt3Pw] [15bad138-4c9f-4408-a2ca-b64fbb11630f] Starting testhub from 30512:0
|
|
13641
|
+
2025-12-13T13:42:38.499Z CLI info [naveen_OSt3Pw] [15bad138-4c9f-4408-a2ca-b64fbb11630f] [PRODUCTION] Making POST request to https://sdk.browserstack.com
|
|
13642
|
+
2025-12-13T13:42:39.968Z CLI info [testhub:module] [naveen_OSt3Pw] [15bad138-4c9f-4408-a2ca-b64fbb11630f] startBuild: response=bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe
|
|
13643
|
+
2025-12-13T13:42:39.972Z CLI info [naveen_OSt3Pw] [bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe] [15bad138-4c9f-4408-a2ca-b64fbb11630f] [PRODUCTION] Making POST request to https://api.browserstack.com
|
|
13644
|
+
2025-12-13T13:42:41.911Z CLI info [naveen_OSt3Pw] [bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe] [15bad138-4c9f-4408-a2ca-b64fbb11630f] [PRODUCTION] Making GET request to https://hub.browserstack.com
|
|
13645
|
+
2025-12-13T13:42:43.091Z CLI info [naveen_OSt3Pw] [bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe] [15bad138-4c9f-4408-a2ca-b64fbb11630f] [PRODUCTION] Making GET request to https://hub-apse.browserstack.com
|
|
13646
|
+
2025-12-13T13:42:44.967Z CLI info [naveen_OSt3Pw] [bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe] [15bad138-4c9f-4408-a2ca-b64fbb11630f] [PRODUCTION] Making GET request to https://hub-aps.browserstack.com
|
|
13647
|
+
2025-12-13T13:42:45.000Z CLI info [sdk:service] [naveen_OSt3Pw] [bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe] [15bad138-4c9f-4408-a2ca-b64fbb11630f] Driver initialized as primary driver: platformIndex=0
|
|
13648
|
+
2025-12-13T13:42:45.268Z CLI info [naveen_OSt3Pw] [bazzh4k8qmph7k3ol9agi2ypr7wh8oy4s7mp6jwe] [15bad138-4c9f-4408-a2ca-b64fbb11630f] [PRODUCTION] Making GET request to https://hub-usw.browserstack.com
|
|
13649
|
+
2025-12-13T13:43:46.331Z CLI info Config : {"userName":"[REDACTED]","accessKey":"[REDACTED]","platforms":[{"platformName":"android","projectName":"BrowserStack Samples","buildName":"browserstack build","sessionName":"Mobile Test","deviceName":"Google Pixel 9","osVersion":"16.0","debug":true,"networkLogs":true,"interactiveDebugging":true,"wdioService":"9.20.1"}],"isNonBstackA11yWDIO":false,"buildIdentifier":"test","browserstackLocal":false,"accessibility":null,"testObservability":true,"browserStackLocalOptions":{"forcelocal":false,"localIdentifier":"wdio-31614"},"testContextOptions":{"skipSessionName":false,"skipSessionStatus":false,"sessionNameOmitTestTitle":false,"sessionNamePrependTopLevelSuiteTitle":false,"sessionNameFormat":""},"buildTag":[]}
|
|
13650
|
+
2025-12-13T13:43:46.342Z CLI info Should start debug utility: undefined
|
|
13651
|
+
2025-12-13T13:43:46.388Z CLI info [testhub:module] [naveen_OSt3Pw] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] Starting testhub from 31621:0
|
|
13652
|
+
2025-12-13T13:43:46.390Z CLI info [naveen_OSt3Pw] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] [PRODUCTION] Making POST request to https://sdk.browserstack.com
|
|
13653
|
+
2025-12-13T13:43:47.651Z CLI info [testhub:module] [naveen_OSt3Pw] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] startBuild: response=ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog
|
|
13654
|
+
2025-12-13T13:43:47.654Z CLI info [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] [PRODUCTION] Making POST request to https://api.browserstack.com
|
|
13655
|
+
2025-12-13T13:43:49.968Z CLI info [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] [PRODUCTION] Making GET request to https://hub.browserstack.com
|
|
13656
|
+
2025-12-13T13:43:51.027Z CLI info [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] [PRODUCTION] Making GET request to https://hub-apse.browserstack.com
|
|
13657
|
+
2025-12-13T13:43:52.048Z CLI info [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] [PRODUCTION] Making GET request to https://hub-aps.browserstack.com
|
|
13658
|
+
2025-12-13T13:43:52.083Z CLI info [sdk:service] [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] Driver initialized as primary driver: platformIndex=0
|
|
13659
|
+
2025-12-13T13:43:52.329Z CLI info [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] [PRODUCTION] Making GET request to https://hub-usw.browserstack.com
|
|
13660
|
+
2025-12-13T13:44:12.861Z CLI info [main] [naveen_OSt3Pw] [ivilo2ybmy7ae1zr3ihg4nutoony0ecpw5uttrog] [5fe5dac0-3f9a-48e9-bf7f-fb483f6dacd3] Received graceful signal termination, performing cleanup
|
|
13661
|
+
2025-12-13T13:46:44.999Z CLI info Config : {"userName":"[REDACTED]","accessKey":"[REDACTED]","platforms":[{"platformName":"android","projectName":"BrowserStack Samples","buildName":"browserstack build","sessionName":"Mobile Test","deviceName":"Google Pixel 9","osVersion":"16.0","debug":true,"networkLogs":true,"interactiveDebugging":true,"wdioService":"9.20.1"}],"isNonBstackA11yWDIO":false,"buildIdentifier":"test","browserstackLocal":false,"accessibility":null,"testObservability":true,"browserStackLocalOptions":{"forcelocal":false,"localIdentifier":"wdio-33014"},"testContextOptions":{"skipSessionName":false,"skipSessionStatus":false,"sessionNameOmitTestTitle":false,"sessionNamePrependTopLevelSuiteTitle":false,"sessionNameFormat":""},"buildTag":[]}
|
|
13662
|
+
2025-12-13T13:46:45.006Z CLI info Should start debug utility: undefined
|
|
13663
|
+
2025-12-13T13:46:45.030Z CLI info [testhub:module] [naveen_OSt3Pw] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Starting testhub from 33019:0
|
|
13664
|
+
2025-12-13T13:46:45.031Z CLI info [naveen_OSt3Pw] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making POST request to https://sdk.browserstack.com
|
|
13665
|
+
2025-12-13T13:46:45.864Z CLI info [testhub:module] [naveen_OSt3Pw] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] startBuild: response=4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl
|
|
13666
|
+
2025-12-13T13:46:45.867Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making POST request to https://api.browserstack.com
|
|
13667
|
+
2025-12-13T13:46:47.496Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making GET request to https://hub.browserstack.com
|
|
13668
|
+
2025-12-13T13:46:48.683Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making GET request to https://hub-apse.browserstack.com
|
|
13669
|
+
2025-12-13T13:46:49.849Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making GET request to https://hub-aps.browserstack.com
|
|
13670
|
+
2025-12-13T13:46:49.883Z CLI info [sdk:service] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Driver initialized as primary driver: platformIndex=0
|
|
13671
|
+
2025-12-13T13:46:50.141Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making GET request to https://hub-usw.browserstack.com
|
|
13672
|
+
2025-12-13T13:47:13.809Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Added the event {
|
|
13673
|
+
event_type: 'CBTSessionCreated',
|
|
13674
|
+
test_run: {
|
|
13675
|
+
uuid: '0f446841-b9c0-4a33-bb34-0666d2bfdb31',
|
|
13676
|
+
integrations: { browserstack: [Object] }
|
|
13677
|
+
}
|
|
13678
|
+
} to 33019:0
|
|
13679
|
+
2025-12-13T13:47:13.814Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Added the event {
|
|
13680
|
+
event_type: 'TestRunStarted',
|
|
13681
|
+
test_run: {
|
|
13682
|
+
type: 'test',
|
|
13683
|
+
framework: 'WebdriverIO-mocha',
|
|
13684
|
+
uuid: '0f446841-b9c0-4a33-bb34-0666d2bfdb31',
|
|
13685
|
+
name: 'Yes Shop Prepaid Registration',
|
|
13686
|
+
body: {
|
|
13687
|
+
lang: 'ecmascript',
|
|
13688
|
+
code: 'async () => {\n' +
|
|
13689
|
+
'\n' +
|
|
13690
|
+
' // // File URLs from BrowserStack\n' +
|
|
13691
|
+
" // const links =await Util.F.extractEmailLinks.getEmailLinks('un','apppwd','subject','fromemail')\n" +
|
|
13692
|
+
" // const foundLink = await Util.F.extractEmailLinks.findLinks(links,'texttofind')\n" +
|
|
13693
|
+
' \n' +
|
|
13694
|
+
' // const idCardFileUrl = "https://drive.google.com/file/d/1t5KZ7a6JLS97khFnuUS-_aOa6EY4a9H0/view?usp=sharing"; // Replace with actual file ID for ID card\n' +
|
|
13695
|
+
' // const videoFileUrl = "https://drive.google.com/file/d/1PYMY2LQ-GFFKJ1wC5yRNflcxfA3ATgvW/view?usp=sharing"; // Replace with actual file ID for video\n' +
|
|
13696
|
+
' const el1 = await driver.$("id:com.ytlcomms.ymca:id/yesLogoIv");\n' +
|
|
13697
|
+
' await el1.click();\n' +
|
|
13698
|
+
' await el1.click();\n' +
|
|
13699
|
+
' await el1.click();\n' +
|
|
13700
|
+
' await el1.click();\n' +
|
|
13701
|
+
' await el1.click();\n' +
|
|
13702
|
+
' await el1.click();\n' +
|
|
13703
|
+
' await el1.click();\n' +
|
|
13704
|
+
' await el1.click();\n' +
|
|
13705
|
+
' await el1.click();\n' +
|
|
13706
|
+
' await el1.click();\n' +
|
|
13707
|
+
' const el2 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserId");\n' +
|
|
13708
|
+
' await el2.addValue("alpha_login");\n' +
|
|
13709
|
+
' const el3 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserPass");\n' +
|
|
13710
|
+
' await el3.addValue("@45kj*3d");\n' +
|
|
13711
|
+
' const el411 = await driver.$("id:com.ytlcomms.ymca:id/btBetaSignIn");\n' +
|
|
13712
|
+
' await el411.click();\n' +
|
|
13713
|
+
' const el51 = await driver.$("id:com.ytlcomms.ymca:id/iotUrl");\n' +
|
|
13714
|
+
' await el51.click();\n' +
|
|
13715
|
+
' /*To scroll to the down of the screen until text is visible */\n' +
|
|
13716
|
+
' await Util.scrollDownToView("GO BACK")\n' +
|
|
13717
|
+
'\n' +
|
|
13718
|
+
' const el61 = await driver.$("id:com.ytlcomms.ymca:id/btGoBack");\n' +
|
|
13719
|
+
' await el61.click();\n' +
|
|
13720
|
+
' const el71 = await driver.$("id:com.ytlcomms.ymca:id/mUserId");\n' +
|
|
13721
|
+
' await el71.addValue("pdc_branch");\n' +
|
|
13722
|
+
' const el81 = await driver.$("id:com.ytlcomms.ymca:id/mPassword");\n' +
|
|
13723
|
+
' await el81.addValue("ytlc@xm1234");\n' +
|
|
13724
|
+
' const el91 = await driver.$("id:com.ytlcomms.ymca:id/btSignIn");\n' +
|
|
13725
|
+
' await el91.click();\n' +
|
|
13726
|
+
' // Start the automation script\n' +
|
|
13727
|
+
' const el4 = await driver.$("-android uiautomator:new UiSelector().text(\\"Registration\\")");\n' +
|
|
13728
|
+
' await el4.click();\n' +
|
|
13729
|
+
'\n' +
|
|
13730
|
+
' const el5 = await driver.$("-android uiautomator:new UiSelector().text(\\"Prepaid\\")");\n' +
|
|
13731
|
+
' await el5.click();\n' +
|
|
13732
|
+
'\n' +
|
|
13733
|
+
' // Trigger ID card upload\n' +
|
|
13734
|
+
' const el6 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");\n' +
|
|
13735
|
+
' await el6.click();\n' +
|
|
13736
|
+
'\n' +
|
|
13737
|
+
' const el7 = await driver.$("id:com.android.permissioncontroller:id/permission_allow_one_time_button");\n' +
|
|
13738
|
+
' await el7.click();\n' +
|
|
13739
|
+
'\n' +
|
|
13740
|
+
' const el8 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");\n' +
|
|
13741
|
+
' await el8.click();\n' +
|
|
13742
|
+
'\n' +
|
|
13743
|
+
' const el9 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");\n' +
|
|
13744
|
+
' await el9.click();\n' +
|
|
13745
|
+
'\n' +
|
|
13746
|
+
' const el10 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");\n' +
|
|
13747
|
+
' await el10.click();\n' +
|
|
13748
|
+
'\n' +
|
|
13749
|
+
` await driver.execute('browserstack_executor: {"action":"cameraImageInjection", "arguments": {"imageUrl" : "media://b44ff746563b5e458e2b5034d3cb25263ad24ebd"}}');\n` +
|
|
13750
|
+
'\n' +
|
|
13751
|
+
' const el11 = await driver.$("id:com.ytlcomms.ymca:id/confirmBtn");\n' +
|
|
13752
|
+
' await el11.click();\n' +
|
|
13753
|
+
' await driver.pause(3000)\n' +
|
|
13754
|
+
'\n' +
|
|
13755
|
+
' const el12 = await driver.$("id:com.sec.android.app.camera:id/bottom_background");\n' +
|
|
13756
|
+
' await el12.click();\n' +
|
|
13757
|
+
'\n' +
|
|
13758
|
+
' await driver.pause(3000)\n' +
|
|
13759
|
+
'\n' +
|
|
13760
|
+
' ////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]\n' +
|
|
13761
|
+
'\n' +
|
|
13762
|
+
` const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");\n` +
|
|
13763
|
+
' await el13.click();\n' +
|
|
13764
|
+
' // const el29 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");\n' +
|
|
13765
|
+
' // await el29.click();\n' +
|
|
13766
|
+
'\n' +
|
|
13767
|
+
' await driver.pause(10000)\n' +
|
|
13768
|
+
' try {\n' +
|
|
13769
|
+
" await driver.action('pointer')\n" +
|
|
13770
|
+
' .move({\n' +
|
|
13771
|
+
' duration: 0,\n' +
|
|
13772
|
+
' x: 937,\n' +
|
|
13773
|
+
' y: 905\n' +
|
|
13774
|
+
' })\n' +
|
|
13775
|
+
' .down({\n' +
|
|
13776
|
+
' button: 0\n' +
|
|
13777
|
+
' })\n' +
|
|
13778
|
+
' .move({\n' +
|
|
13779
|
+
' duration: 1000,\n' +
|
|
13780
|
+
' x: 1043,\n' +
|
|
13781
|
+
' y: 696\n' +
|
|
13782
|
+
' })\n' +
|
|
13783
|
+
' .up({\n' +
|
|
13784
|
+
' button: 0\n' +
|
|
13785
|
+
' })\n' +
|
|
13786
|
+
' .perform();\n' +
|
|
13787
|
+
'\n' +
|
|
13788
|
+
'\n' +
|
|
13789
|
+
' } catch (e) {\n' +
|
|
13790
|
+
" console.error('Error in right :', e);\n" +
|
|
13791
|
+
'\n' +
|
|
13792
|
+
' }\n' +
|
|
13793
|
+
' try {\n' +
|
|
13794
|
+
" await driver.action('pointer')\n" +
|
|
13795
|
+
' .move({\n' +
|
|
13796
|
+
' duration: 0,\n' +
|
|
13797
|
+
' x: 134,\n' +
|
|
13798
|
+
' y: 1498\n' +
|
|
13799
|
+
' })\n' +
|
|
13800
|
+
' .down({\n' +
|
|
13801
|
+
' button: 0\n' +
|
|
13802
|
+
' })\n' +
|
|
13803
|
+
' .move({\n' +
|
|
13804
|
+
' duration: 1000,\n' +
|
|
13805
|
+
' x: 28,\n' +
|
|
13806
|
+
' y: 1723\n' +
|
|
13807
|
+
' })\n' +
|
|
13808
|
+
' .up({\n' +
|
|
13809
|
+
' button: 0\n' +
|
|
13810
|
+
' })\n' +
|
|
13811
|
+
' .perform();\n' +
|
|
13812
|
+
'\n' +
|
|
13813
|
+
' //\n' +
|
|
13814
|
+
' } catch (e) {\n' +
|
|
13815
|
+
" console.error('Error in left:', e);\n" +
|
|
13816
|
+
'\n' +
|
|
13817
|
+
' }\n' +
|
|
13818
|
+
' await driver.pause(10000) // Confirm upload\n' +
|
|
13819
|
+
'\n' +
|
|
13820
|
+
` const el16 = await driver.$("//android.widget.TextView[@text='Done']");\n` +
|
|
13821
|
+
' await el16.click();\n' +
|
|
13822
|
+
'\n' +
|
|
13823
|
+
' await driver.pause(30000)\n' +
|
|
13824
|
+
' const el17 = await driver.$("id:com.ytlcomms.ymca:id/newRb");\n' +
|
|
13825
|
+
' await el17.click();\n' +
|
|
13826
|
+
'\n' +
|
|
13827
|
+
' // await Util.F.scrollDownToView("Facial Recognition")\n' +
|
|
13828
|
+
'\n' +
|
|
13829
|
+
' const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");\n' +
|
|
13830
|
+
' await el18.click();\n' +
|
|
13831
|
+
' const el19 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");\n' +
|
|
13832
|
+
' await el19.click();\n' +
|
|
13833
|
+
'\n' +
|
|
13834
|
+
` await driver.execute('browserstack_executor: {"action":"cameraVideoInjection", "arguments": {"videoUrl" : "media://1920c80136e1c7e2278e15d820845ed64a676e92"}}');\n` +
|
|
13835
|
+
'\n' +
|
|
13836
|
+
' const el20 = await driver.$("id:com.ytlcomms.ymca:id/startBtn");\n' +
|
|
13837
|
+
' await el20.click();\n' +
|
|
13838
|
+
'\n' +
|
|
13839
|
+
' await driver.pause(3000)\n' +
|
|
13840
|
+
'\n' +
|
|
13841
|
+
' const el21 = await driver.$("id:com.ytlcomms.ymca:id/captureVideo");\n' +
|
|
13842
|
+
' await el21.click();\n' +
|
|
13843
|
+
'\n' +
|
|
13844
|
+
' await driver.pause(10000)\n' +
|
|
13845
|
+
'\n' +
|
|
13846
|
+
' ////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]\n' +
|
|
13847
|
+
'\n' +
|
|
13848
|
+
` // const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");\n` +
|
|
13849
|
+
' // await el13.click();\n' +
|
|
13850
|
+
' //99999999\n' +
|
|
13851
|
+
'\n' +
|
|
13852
|
+
'\n' +
|
|
13853
|
+
' // Trigger video upload for face recognition\n' +
|
|
13854
|
+
' // const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");\n' +
|
|
13855
|
+
' // await el18.click();\n' +
|
|
13856
|
+
' // await driver.execute("mobile: uploadFile", { file: videoFileUrl }); // Upload video\n' +
|
|
13857
|
+
'\n' +
|
|
13858
|
+
' // Complete the remaining flow\n' +
|
|
13859
|
+
` const el25 = await driver.$("-android uiautomator:new UiSelector().text('-- PLAN --')");\n` +
|
|
13860
|
+
' await el25.click();\n' +
|
|
13861
|
+
'\n' +
|
|
13862
|
+
` const el26 = await driver.$("-android uiautomator:new UiSelector().text('YES 5G Prepaid')");\n` +
|
|
13863
|
+
' await el26.click();\n' +
|
|
13864
|
+
'\n' +
|
|
13865
|
+
' const el44 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");\n' +
|
|
13866
|
+
' await el44.click();\n' +
|
|
13867
|
+
'\n' +
|
|
13868
|
+
' const el40 = await driver.$("id:com.ytlcomms.ymca:id/eSimRb");\n' +
|
|
13869
|
+
' await el40.click();\n' +
|
|
13870
|
+
' const el41 = await driver.$("id:com.ytlcomms.ymca:id/optionalMobTitleLabel");\n' +
|
|
13871
|
+
' await el41.click();\n' +
|
|
13872
|
+
' //add scroll here\n' +
|
|
13873
|
+
'\n' +
|
|
13874
|
+
` const el42 = await driver.$("-android uiautomator:new UiSelector().text('01117242402')");\n` +
|
|
13875
|
+
' await el42.click();\n' +
|
|
13876
|
+
' const el43 = await driver.$("id:com.ytlcomms.ymca:id/md_buttonDefaultPositive");\n' +
|
|
13877
|
+
' await el43.click();\n' +
|
|
13878
|
+
' //add scroll to end here\n' +
|
|
13879
|
+
'\n' +
|
|
13880
|
+
' const el45 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");\n' +
|
|
13881
|
+
' await el45.click();\n' +
|
|
13882
|
+
'\n' +
|
|
13883
|
+
'\n' +
|
|
13884
|
+
' }'
|
|
13885
|
+
},
|
|
13886
|
+
identifier: 'Yes Shop Prepaid Registration',
|
|
13887
|
+
scope: 'Yes Shop Prepaid Registration - Yes Shop Prepaid Registration',
|
|
13888
|
+
scopes: [ 'Yes Shop Prepaid Registration' ],
|
|
13889
|
+
file_name: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
13890
|
+
vc_filepath: 'wdio_fresh_framework/wdio_fresh_framework/android/samplescript_x.js',
|
|
13891
|
+
location: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
13892
|
+
result: 'pending',
|
|
13893
|
+
duration_in_ms: null,
|
|
13894
|
+
started_at: '2025-12-13T13:47:13.760Z',
|
|
13895
|
+
failure: undefined,
|
|
13896
|
+
failure_type: undefined,
|
|
13897
|
+
failure_reason: undefined,
|
|
13898
|
+
retry_of: null,
|
|
13899
|
+
custom_metadata: undefined,
|
|
13900
|
+
tags: [],
|
|
13901
|
+
customRerunParam: { rerun_name: undefined },
|
|
13902
|
+
hooks: [],
|
|
13903
|
+
product_map: {
|
|
13904
|
+
observability: true,
|
|
13905
|
+
accessibility: false,
|
|
13906
|
+
percy: false,
|
|
13907
|
+
automate: true,
|
|
13908
|
+
app_automate: false
|
|
13909
|
+
}
|
|
13910
|
+
},
|
|
13911
|
+
logs: []
|
|
13912
|
+
} to 33019:0
|
|
13913
|
+
2025-12-13T13:47:13.877Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Processing batch event [
|
|
13914
|
+
{
|
|
13915
|
+
event_type: 'CBTSessionCreated',
|
|
13916
|
+
test_run: {
|
|
13917
|
+
uuid: '0f446841-b9c0-4a33-bb34-0666d2bfdb31',
|
|
13918
|
+
integrations: [Object]
|
|
13919
|
+
}
|
|
13920
|
+
},
|
|
13921
|
+
{
|
|
13922
|
+
event_type: 'TestRunStarted',
|
|
13923
|
+
test_run: {
|
|
13924
|
+
type: 'test',
|
|
13925
|
+
framework: 'WebdriverIO-mocha',
|
|
13926
|
+
uuid: '0f446841-b9c0-4a33-bb34-0666d2bfdb31',
|
|
13927
|
+
name: 'Yes Shop Prepaid Registration',
|
|
13928
|
+
body: [Object],
|
|
13929
|
+
identifier: 'Yes Shop Prepaid Registration',
|
|
13930
|
+
scope: 'Yes Shop Prepaid Registration - Yes Shop Prepaid Registration',
|
|
13931
|
+
scopes: [Array],
|
|
13932
|
+
file_name: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
13933
|
+
vc_filepath: 'wdio_fresh_framework/wdio_fresh_framework/android/samplescript_x.js',
|
|
13934
|
+
location: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
13935
|
+
result: 'pending',
|
|
13936
|
+
duration_in_ms: null,
|
|
13937
|
+
started_at: '2025-12-13T13:47:13.760Z',
|
|
13938
|
+
failure: undefined,
|
|
13939
|
+
failure_type: undefined,
|
|
13940
|
+
failure_reason: undefined,
|
|
13941
|
+
retry_of: null,
|
|
13942
|
+
custom_metadata: undefined,
|
|
13943
|
+
tags: [],
|
|
13944
|
+
customRerunParam: [Object],
|
|
13945
|
+
hooks: [],
|
|
13946
|
+
product_map: [Object]
|
|
13947
|
+
},
|
|
13948
|
+
logs: []
|
|
13949
|
+
}
|
|
13950
|
+
] to 33019:0
|
|
13951
|
+
2025-12-13T13:47:13.878Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making POST request to https://collector-observability.browserstack.com
|
|
13952
|
+
2025-12-13T13:47:17.425Z CLI warn [TEST REPORTING AND ANALYTICS:webdriverio:mocha] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] TestRunFinished: event={"test_framework_name":"WebdriverIO-mocha","test_framework_version":"9.20.1","test_logs":[],"test_hooks_finished":{},"test_hooks_started":{},"test_uuid":"0f446841-b9c0-4a33-bb34-0666d2bfdb31","test_result":"failed","test_hook_last_started":"TestFrameworkState.TEST","test_id":"Yes Shop Prepaid Registration - Yes Shop Prepaid Registration","test_name":"Yes Shop Prepaid Registration","test_code":"async () => {\n\n // // File URLs from BrowserStack\n // const links =await Util.F.extractEmailLinks.getEmailLinks('un','apppwd','subject','fromemail')\n // const foundLink = await Util.F.extractEmailLinks.findLinks(links,'texttofind')\n \n // const idCardFileUrl = \"https://drive.google.com/file/d/1t5KZ7a6JLS97khFnuUS-_aOa6EY4a9H0/view?usp=sharing\"; // Replace with actual file ID for ID card\n // const videoFileUrl = \"https://drive.google.com/file/d/1PYMY2LQ-GFFKJ1wC5yRNflcxfA3ATgvW/view?usp=sharing\"; // Replace with actual file ID for video\n const el1 = await driver.$(\"id:com.ytlcomms.ymca:id/yesLogoIv\");\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n await el1.click();\n const el2 = await driver.$(\"id:com.ytlcomms.ymca:id/etBetaUserId\");\n await el2.addValue(\"alpha_login\");\n const el3 = await driver.$(\"id:com.ytlcomms.ymca:id/etBetaUserPass\");\n await el3.addValue(\"@45kj*3d\");\n const el411 = await driver.$(\"id:com.ytlcomms.ymca:id/btBetaSignIn\");\n await el411.click();\n const el51 = await driver.$(\"id:com.ytlcomms.ymca:id/iotUrl\");\n await el51.click();\n /*To scroll to the down of the screen until text is visible */\n await Util.scrollDownToView(\"GO BACK\")\n\n const el61 = await driver.$(\"id:com.ytlcomms.ymca:id/btGoBack\");\n await el61.click();\n const el71 = await driver.$(\"id:com.ytlcomms.ymca:id/mUserId\");\n await el71.addValue(\"pdc_branch\");\n const el81 = await driver.$(\"id:com.ytlcomms.ymca:id/mPassword\");\n await el81.addValue(\"ytlc@xm1234\");\n const el91 = await driver.$(\"id:com.ytlcomms.ymca:id/btSignIn\");\n await el91.click();\n // Start the automation script\n const el4 = await driver.$(\"-android uiautomator:new UiSelector().text(\\\"Registration\\\")\");\n await el4.click();\n\n const el5 = await driver.$(\"-android uiautomator:new UiSelector().text(\\\"Prepaid\\\")\");\n await el5.click();\n\n // Trigger ID card upload\n const el6 = await driver.$(\"id:com.ytlcomms.ymca:id/ekycMyKadBtn\");\n await el6.click();\n\n const el7 = await driver.$(\"id:com.android.permissioncontroller:id/permission_allow_one_time_button\");\n await el7.click();\n\n const el8 = await driver.$(\"id:com.ytlcomms.ymca:id/ekycMyKadBtn\");\n await el8.click();\n\n const el9 = await driver.$(\"id:com.ytlcomms.ymca:id/skipBtn\");\n await el9.click();\n\n const el10 = await driver.$(\"id:com.ytlcomms.ymca:id/selectCountryBtn\");\n await el10.click();\n\n await driver.execute('browserstack_executor: {\"action\":\"cameraImageInjection\", \"arguments\": {\"imageUrl\" : \"media://b44ff746563b5e458e2b5034d3cb25263ad24ebd\"}}');\n\n const el11 = await driver.$(\"id:com.ytlcomms.ymca:id/confirmBtn\");\n await el11.click();\n await driver.pause(3000)\n\n const el12 = await driver.$(\"id:com.sec.android.app.camera:id/bottom_background\");\n await el12.click();\n\n await driver.pause(3000)\n\n ////android.widget.Button[@resource-id=\"com.sec.android.app.camera:id/okay\"]\n\n const el13 = await driver.$(\"//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']\");\n await el13.click();\n // const el29 = await driver.$(\"id:com.ytlcomms.ymca:id/selectCountryBtn\");\n // await el29.click();\n\n await driver.pause(10000)\n try {\n await driver.action('pointer')\n .move({\n duration: 0,\n x: 937,\n y: 905\n })\n .down({\n button: 0\n })\n .move({\n duration: 1000,\n x: 1043,\n y: 696\n })\n .up({\n button: 0\n })\n .perform();\n\n\n } catch (e) {\n console.error('Error in right :', e);\n\n }\n try {\n await driver.action('pointer')\n .move({\n duration: 0,\n x: 134,\n y: 1498\n })\n .down({\n button: 0\n })\n .move({\n duration: 1000,\n x: 28,\n y: 1723\n })\n .up({\n button: 0\n })\n .perform();\n\n //\n } catch (e) {\n console.error('Error in left:', e);\n\n }\n await driver.pause(10000) // Confirm upload\n\n const el16 = await driver.$(\"//android.widget.TextView[@text='Done']\");\n await el16.click();\n\n await driver.pause(30000)\n const el17 = await driver.$(\"id:com.ytlcomms.ymca:id/newRb\");\n await el17.click();\n\n // await Util.F.scrollDownToView(\"Facial Recognition\")\n\n const el18 = await driver.$(\"id:com.ytlcomms.ymca:id/frRecognitionBtn\");\n await el18.click();\n const el19 = await driver.$(\"id:com.ytlcomms.ymca:id/skipBtn\");\n await el19.click();\n\n await driver.execute('browserstack_executor: {\"action\":\"cameraVideoInjection\", \"arguments\": {\"videoUrl\" : \"media://1920c80136e1c7e2278e15d820845ed64a676e92\"}}');\n\n const el20 = await driver.$(\"id:com.ytlcomms.ymca:id/startBtn\");\n await el20.click();\n\n await driver.pause(3000)\n\n const el21 = await driver.$(\"id:com.ytlcomms.ymca:id/captureVideo\");\n await el21.click();\n\n await driver.pause(10000)\n\n ////android.widget.Button[@resource-id=\"com.sec.android.app.camera:id/okay\"]\n\n // const el13 = await driver.$(\"//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']\");\n // await el13.click();\n //99999999\n\n\n // Trigger video upload for face recognition\n // const el18 = await driver.$(\"id:com.ytlcomms.ymca:id/frRecognitionBtn\");\n // await el18.click();\n // await driver.execute(\"mobile: uploadFile\", { file: videoFileUrl }); // Upload video\n\n // Complete the remaining flow\n const el25 = await driver.$(\"-android uiautomator:new UiSelector().text('-- PLAN --')\");\n await el25.click();\n\n const el26 = await driver.$(\"-android uiautomator:new UiSelector().text('YES 5G Prepaid')\");\n await el26.click();\n\n const el44 = await driver.$(\"id:com.ytlcomms.ymca:id/submitBtn\");\n await el44.click();\n\n const el40 = await driver.$(\"id:com.ytlcomms.ymca:id/eSimRb\");\n await el40.click();\n const el41 = await driver.$(\"id:com.ytlcomms.ymca:id/optionalMobTitleLabel\");\n await el41.click();\n //add scroll here\n\n const el42 = await driver.$(\"-android uiautomator:new UiSelector().text('01117242402')\");\n await el42.click();\n const el43 = await driver.$(\"id:com.ytlcomms.ymca:id/md_buttonDefaultPositive\");\n await el43.click();\n //add scroll to end here\n\n const el45 = await driver.$(\"id:com.ytlcomms.ymca:id/submitBtn\");\n await el45.click();\n\n\n }","test_file_path":"wdio_fresh_framework/android/samplescript_x.js","test_location":"android/samplescript_x.js","test_scope":"Yes Shop Prepaid Registration - Yes Shop Prepaid Registration","test_scopes":["Yes Shop Prepaid Registration"],"test_started_at":"2025-12-13T13:47:13.760Z","automate_session_name":"Yes Shop Prepaid Registration - Yes Shop Prepaid Registration","test_failure":[{"backtrace":["WebDriverError: The selector \"undefined\" used with strategy \"undefined\" is invalid! when running \"element\" with method \"POST\"","invalid argument: WebDriverError: The selector \"undefined\" used with strategy \"undefined\" is invalid! when running \"element\" with method \"POST\"\n at async Context.<anonymous> (/Users/subhrasubudhi/WORKSPACES/WEBDRIVERIO/wdio_fresh_framework/android/samplescript_x.js:13:17)"]}],"test_failure_reason":"WebDriverError: The selector \"undefined\" used with strategy \"undefined\" is invalid! when running \"element\" with method \"POST\"","test_failure_type":"UnhandledError","test_ended_at":"2025-12-13T13:47:17.414Z","test_hook_last_finished":"TestFrameworkState.TEST","automate_session_status":"failed","automate_session_reason":"WebDriverError: The selector \"undefined\" used with strategy \"undefined\" is invalid! when running \"element\" with method \"POST\"","test_deferred":true,"logs":[]}
|
|
13953
|
+
2025-12-13T13:47:17.428Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Added the event {
|
|
13954
|
+
event_type: 'TestRunFinished',
|
|
13955
|
+
test_run: {
|
|
13956
|
+
type: 'test',
|
|
13957
|
+
framework: 'WebdriverIO-mocha',
|
|
13958
|
+
uuid: '0f446841-b9c0-4a33-bb34-0666d2bfdb31',
|
|
13959
|
+
name: 'Yes Shop Prepaid Registration',
|
|
13960
|
+
body: {
|
|
13961
|
+
lang: 'ecmascript',
|
|
13962
|
+
code: 'async () => {\n' +
|
|
13963
|
+
'\n' +
|
|
13964
|
+
' // // File URLs from BrowserStack\n' +
|
|
13965
|
+
" // const links =await Util.F.extractEmailLinks.getEmailLinks('un','apppwd','subject','fromemail')\n" +
|
|
13966
|
+
" // const foundLink = await Util.F.extractEmailLinks.findLinks(links,'texttofind')\n" +
|
|
13967
|
+
' \n' +
|
|
13968
|
+
' // const idCardFileUrl = "https://drive.google.com/file/d/1t5KZ7a6JLS97khFnuUS-_aOa6EY4a9H0/view?usp=sharing"; // Replace with actual file ID for ID card\n' +
|
|
13969
|
+
' // const videoFileUrl = "https://drive.google.com/file/d/1PYMY2LQ-GFFKJ1wC5yRNflcxfA3ATgvW/view?usp=sharing"; // Replace with actual file ID for video\n' +
|
|
13970
|
+
' const el1 = await driver.$("id:com.ytlcomms.ymca:id/yesLogoIv");\n' +
|
|
13971
|
+
' await el1.click();\n' +
|
|
13972
|
+
' await el1.click();\n' +
|
|
13973
|
+
' await el1.click();\n' +
|
|
13974
|
+
' await el1.click();\n' +
|
|
13975
|
+
' await el1.click();\n' +
|
|
13976
|
+
' await el1.click();\n' +
|
|
13977
|
+
' await el1.click();\n' +
|
|
13978
|
+
' await el1.click();\n' +
|
|
13979
|
+
' await el1.click();\n' +
|
|
13980
|
+
' await el1.click();\n' +
|
|
13981
|
+
' const el2 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserId");\n' +
|
|
13982
|
+
' await el2.addValue("alpha_login");\n' +
|
|
13983
|
+
' const el3 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserPass");\n' +
|
|
13984
|
+
' await el3.addValue("@45kj*3d");\n' +
|
|
13985
|
+
' const el411 = await driver.$("id:com.ytlcomms.ymca:id/btBetaSignIn");\n' +
|
|
13986
|
+
' await el411.click();\n' +
|
|
13987
|
+
' const el51 = await driver.$("id:com.ytlcomms.ymca:id/iotUrl");\n' +
|
|
13988
|
+
' await el51.click();\n' +
|
|
13989
|
+
' /*To scroll to the down of the screen until text is visible */\n' +
|
|
13990
|
+
' await Util.scrollDownToView("GO BACK")\n' +
|
|
13991
|
+
'\n' +
|
|
13992
|
+
' const el61 = await driver.$("id:com.ytlcomms.ymca:id/btGoBack");\n' +
|
|
13993
|
+
' await el61.click();\n' +
|
|
13994
|
+
' const el71 = await driver.$("id:com.ytlcomms.ymca:id/mUserId");\n' +
|
|
13995
|
+
' await el71.addValue("pdc_branch");\n' +
|
|
13996
|
+
' const el81 = await driver.$("id:com.ytlcomms.ymca:id/mPassword");\n' +
|
|
13997
|
+
' await el81.addValue("ytlc@xm1234");\n' +
|
|
13998
|
+
' const el91 = await driver.$("id:com.ytlcomms.ymca:id/btSignIn");\n' +
|
|
13999
|
+
' await el91.click();\n' +
|
|
14000
|
+
' // Start the automation script\n' +
|
|
14001
|
+
' const el4 = await driver.$("-android uiautomator:new UiSelector().text(\\"Registration\\")");\n' +
|
|
14002
|
+
' await el4.click();\n' +
|
|
14003
|
+
'\n' +
|
|
14004
|
+
' const el5 = await driver.$("-android uiautomator:new UiSelector().text(\\"Prepaid\\")");\n' +
|
|
14005
|
+
' await el5.click();\n' +
|
|
14006
|
+
'\n' +
|
|
14007
|
+
' // Trigger ID card upload\n' +
|
|
14008
|
+
' const el6 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");\n' +
|
|
14009
|
+
' await el6.click();\n' +
|
|
14010
|
+
'\n' +
|
|
14011
|
+
' const el7 = await driver.$("id:com.android.permissioncontroller:id/permission_allow_one_time_button");\n' +
|
|
14012
|
+
' await el7.click();\n' +
|
|
14013
|
+
'\n' +
|
|
14014
|
+
' const el8 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");\n' +
|
|
14015
|
+
' await el8.click();\n' +
|
|
14016
|
+
'\n' +
|
|
14017
|
+
' const el9 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");\n' +
|
|
14018
|
+
' await el9.click();\n' +
|
|
14019
|
+
'\n' +
|
|
14020
|
+
' const el10 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");\n' +
|
|
14021
|
+
' await el10.click();\n' +
|
|
14022
|
+
'\n' +
|
|
14023
|
+
` await driver.execute('browserstack_executor: {"action":"cameraImageInjection", "arguments": {"imageUrl" : "media://b44ff746563b5e458e2b5034d3cb25263ad24ebd"}}');\n` +
|
|
14024
|
+
'\n' +
|
|
14025
|
+
' const el11 = await driver.$("id:com.ytlcomms.ymca:id/confirmBtn");\n' +
|
|
14026
|
+
' await el11.click();\n' +
|
|
14027
|
+
' await driver.pause(3000)\n' +
|
|
14028
|
+
'\n' +
|
|
14029
|
+
' const el12 = await driver.$("id:com.sec.android.app.camera:id/bottom_background");\n' +
|
|
14030
|
+
' await el12.click();\n' +
|
|
14031
|
+
'\n' +
|
|
14032
|
+
' await driver.pause(3000)\n' +
|
|
14033
|
+
'\n' +
|
|
14034
|
+
' ////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]\n' +
|
|
14035
|
+
'\n' +
|
|
14036
|
+
` const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");\n` +
|
|
14037
|
+
' await el13.click();\n' +
|
|
14038
|
+
' // const el29 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");\n' +
|
|
14039
|
+
' // await el29.click();\n' +
|
|
14040
|
+
'\n' +
|
|
14041
|
+
' await driver.pause(10000)\n' +
|
|
14042
|
+
' try {\n' +
|
|
14043
|
+
" await driver.action('pointer')\n" +
|
|
14044
|
+
' .move({\n' +
|
|
14045
|
+
' duration: 0,\n' +
|
|
14046
|
+
' x: 937,\n' +
|
|
14047
|
+
' y: 905\n' +
|
|
14048
|
+
' })\n' +
|
|
14049
|
+
' .down({\n' +
|
|
14050
|
+
' button: 0\n' +
|
|
14051
|
+
' })\n' +
|
|
14052
|
+
' .move({\n' +
|
|
14053
|
+
' duration: 1000,\n' +
|
|
14054
|
+
' x: 1043,\n' +
|
|
14055
|
+
' y: 696\n' +
|
|
14056
|
+
' })\n' +
|
|
14057
|
+
' .up({\n' +
|
|
14058
|
+
' button: 0\n' +
|
|
14059
|
+
' })\n' +
|
|
14060
|
+
' .perform();\n' +
|
|
14061
|
+
'\n' +
|
|
14062
|
+
'\n' +
|
|
14063
|
+
' } catch (e) {\n' +
|
|
14064
|
+
" console.error('Error in right :', e);\n" +
|
|
14065
|
+
'\n' +
|
|
14066
|
+
' }\n' +
|
|
14067
|
+
' try {\n' +
|
|
14068
|
+
" await driver.action('pointer')\n" +
|
|
14069
|
+
' .move({\n' +
|
|
14070
|
+
' duration: 0,\n' +
|
|
14071
|
+
' x: 134,\n' +
|
|
14072
|
+
' y: 1498\n' +
|
|
14073
|
+
' })\n' +
|
|
14074
|
+
' .down({\n' +
|
|
14075
|
+
' button: 0\n' +
|
|
14076
|
+
' })\n' +
|
|
14077
|
+
' .move({\n' +
|
|
14078
|
+
' duration: 1000,\n' +
|
|
14079
|
+
' x: 28,\n' +
|
|
14080
|
+
' y: 1723\n' +
|
|
14081
|
+
' })\n' +
|
|
14082
|
+
' .up({\n' +
|
|
14083
|
+
' button: 0\n' +
|
|
14084
|
+
' })\n' +
|
|
14085
|
+
' .perform();\n' +
|
|
14086
|
+
'\n' +
|
|
14087
|
+
' //\n' +
|
|
14088
|
+
' } catch (e) {\n' +
|
|
14089
|
+
" console.error('Error in left:', e);\n" +
|
|
14090
|
+
'\n' +
|
|
14091
|
+
' }\n' +
|
|
14092
|
+
' await driver.pause(10000) // Confirm upload\n' +
|
|
14093
|
+
'\n' +
|
|
14094
|
+
` const el16 = await driver.$("//android.widget.TextView[@text='Done']");\n` +
|
|
14095
|
+
' await el16.click();\n' +
|
|
14096
|
+
'\n' +
|
|
14097
|
+
' await driver.pause(30000)\n' +
|
|
14098
|
+
' const el17 = await driver.$("id:com.ytlcomms.ymca:id/newRb");\n' +
|
|
14099
|
+
' await el17.click();\n' +
|
|
14100
|
+
'\n' +
|
|
14101
|
+
' // await Util.F.scrollDownToView("Facial Recognition")\n' +
|
|
14102
|
+
'\n' +
|
|
14103
|
+
' const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");\n' +
|
|
14104
|
+
' await el18.click();\n' +
|
|
14105
|
+
' const el19 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");\n' +
|
|
14106
|
+
' await el19.click();\n' +
|
|
14107
|
+
'\n' +
|
|
14108
|
+
` await driver.execute('browserstack_executor: {"action":"cameraVideoInjection", "arguments": {"videoUrl" : "media://1920c80136e1c7e2278e15d820845ed64a676e92"}}');\n` +
|
|
14109
|
+
'\n' +
|
|
14110
|
+
' const el20 = await driver.$("id:com.ytlcomms.ymca:id/startBtn");\n' +
|
|
14111
|
+
' await el20.click();\n' +
|
|
14112
|
+
'\n' +
|
|
14113
|
+
' await driver.pause(3000)\n' +
|
|
14114
|
+
'\n' +
|
|
14115
|
+
' const el21 = await driver.$("id:com.ytlcomms.ymca:id/captureVideo");\n' +
|
|
14116
|
+
' await el21.click();\n' +
|
|
14117
|
+
'\n' +
|
|
14118
|
+
' await driver.pause(10000)\n' +
|
|
14119
|
+
'\n' +
|
|
14120
|
+
' ////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]\n' +
|
|
14121
|
+
'\n' +
|
|
14122
|
+
` // const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");\n` +
|
|
14123
|
+
' // await el13.click();\n' +
|
|
14124
|
+
' //99999999\n' +
|
|
14125
|
+
'\n' +
|
|
14126
|
+
'\n' +
|
|
14127
|
+
' // Trigger video upload for face recognition\n' +
|
|
14128
|
+
' // const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");\n' +
|
|
14129
|
+
' // await el18.click();\n' +
|
|
14130
|
+
' // await driver.execute("mobile: uploadFile", { file: videoFileUrl }); // Upload video\n' +
|
|
14131
|
+
'\n' +
|
|
14132
|
+
' // Complete the remaining flow\n' +
|
|
14133
|
+
` const el25 = await driver.$("-android uiautomator:new UiSelector().text('-- PLAN --')");\n` +
|
|
14134
|
+
' await el25.click();\n' +
|
|
14135
|
+
'\n' +
|
|
14136
|
+
` const el26 = await driver.$("-android uiautomator:new UiSelector().text('YES 5G Prepaid')");\n` +
|
|
14137
|
+
' await el26.click();\n' +
|
|
14138
|
+
'\n' +
|
|
14139
|
+
' const el44 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");\n' +
|
|
14140
|
+
' await el44.click();\n' +
|
|
14141
|
+
'\n' +
|
|
14142
|
+
' const el40 = await driver.$("id:com.ytlcomms.ymca:id/eSimRb");\n' +
|
|
14143
|
+
' await el40.click();\n' +
|
|
14144
|
+
' const el41 = await driver.$("id:com.ytlcomms.ymca:id/optionalMobTitleLabel");\n' +
|
|
14145
|
+
' await el41.click();\n' +
|
|
14146
|
+
' //add scroll here\n' +
|
|
14147
|
+
'\n' +
|
|
14148
|
+
` const el42 = await driver.$("-android uiautomator:new UiSelector().text('01117242402')");\n` +
|
|
14149
|
+
' await el42.click();\n' +
|
|
14150
|
+
' const el43 = await driver.$("id:com.ytlcomms.ymca:id/md_buttonDefaultPositive");\n' +
|
|
14151
|
+
' await el43.click();\n' +
|
|
14152
|
+
' //add scroll to end here\n' +
|
|
14153
|
+
'\n' +
|
|
14154
|
+
' const el45 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");\n' +
|
|
14155
|
+
' await el45.click();\n' +
|
|
14156
|
+
'\n' +
|
|
14157
|
+
'\n' +
|
|
14158
|
+
' }'
|
|
14159
|
+
},
|
|
14160
|
+
identifier: 'Yes Shop Prepaid Registration',
|
|
14161
|
+
scope: 'Yes Shop Prepaid Registration - Yes Shop Prepaid Registration',
|
|
14162
|
+
scopes: [ 'Yes Shop Prepaid Registration' ],
|
|
14163
|
+
file_name: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14164
|
+
vc_filepath: 'wdio_fresh_framework/wdio_fresh_framework/android/samplescript_x.js',
|
|
14165
|
+
location: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14166
|
+
result: 'failed',
|
|
14167
|
+
duration_in_ms: 3654,
|
|
14168
|
+
started_at: '2025-12-13T13:47:13.760Z',
|
|
14169
|
+
finished_at: '2025-12-13T13:47:17.414Z',
|
|
14170
|
+
failure: [ [Object] ],
|
|
14171
|
+
failure_type: 'UnhandledError',
|
|
14172
|
+
failure_reason: 'WebDriverError: The selector "undefined" used with strategy "undefined" is invalid! when running "element" with method "POST"',
|
|
14173
|
+
retry_of: null,
|
|
14174
|
+
custom_metadata: undefined,
|
|
14175
|
+
tags: [],
|
|
14176
|
+
customRerunParam: { rerun_name: undefined },
|
|
14177
|
+
hooks: [],
|
|
14178
|
+
product_map: {
|
|
14179
|
+
observability: true,
|
|
14180
|
+
accessibility: false,
|
|
14181
|
+
percy: false,
|
|
14182
|
+
automate: true,
|
|
14183
|
+
app_automate: false
|
|
14184
|
+
}
|
|
14185
|
+
},
|
|
14186
|
+
logs: []
|
|
14187
|
+
} to 33019:0
|
|
14188
|
+
2025-12-13T13:47:17.878Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Processing batch event [
|
|
14189
|
+
{
|
|
14190
|
+
event_type: 'TestRunFinished',
|
|
14191
|
+
test_run: {
|
|
14192
|
+
type: 'test',
|
|
14193
|
+
framework: 'WebdriverIO-mocha',
|
|
14194
|
+
uuid: '0f446841-b9c0-4a33-bb34-0666d2bfdb31',
|
|
14195
|
+
name: 'Yes Shop Prepaid Registration',
|
|
14196
|
+
body: [Object],
|
|
14197
|
+
identifier: 'Yes Shop Prepaid Registration',
|
|
14198
|
+
scope: 'Yes Shop Prepaid Registration - Yes Shop Prepaid Registration',
|
|
14199
|
+
scopes: [Array],
|
|
14200
|
+
file_name: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14201
|
+
vc_filepath: 'wdio_fresh_framework/wdio_fresh_framework/android/samplescript_x.js',
|
|
14202
|
+
location: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14203
|
+
result: 'failed',
|
|
14204
|
+
duration_in_ms: 3654,
|
|
14205
|
+
started_at: '2025-12-13T13:47:13.760Z',
|
|
14206
|
+
finished_at: '2025-12-13T13:47:17.414Z',
|
|
14207
|
+
failure: [Array],
|
|
14208
|
+
failure_type: 'UnhandledError',
|
|
14209
|
+
failure_reason: 'WebDriverError: The selector "undefined" used with strategy "undefined" is invalid! when running "element" with method "POST"',
|
|
14210
|
+
retry_of: null,
|
|
14211
|
+
custom_metadata: undefined,
|
|
14212
|
+
tags: [],
|
|
14213
|
+
customRerunParam: [Object],
|
|
14214
|
+
hooks: [],
|
|
14215
|
+
product_map: [Object]
|
|
14216
|
+
},
|
|
14217
|
+
logs: []
|
|
14218
|
+
}
|
|
14219
|
+
] to 33019:0
|
|
14220
|
+
2025-12-13T13:47:17.880Z CLI info [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] [PRODUCTION] Making POST request to https://collector-observability.browserstack.com
|
|
14221
|
+
2025-12-13T13:47:18.577Z CLI info [main] [naveen_OSt3Pw] [4ipfli4ht2yc5y0rq1fxoxnzyyhlswc3pzdfi9kl] [54a61f03-1d56-4a94-8e9f-7218aa4ce134] Received graceful signal termination, performing cleanup
|
|
14222
|
+
2025-12-13T13:53:54.961Z CLI info Config : {"userName":"[REDACTED]","accessKey":"[REDACTED]","platforms":[{"platformName":"android","projectName":"BrowserStack Samples","buildName":"browserstack build","sessionName":"Mobile Test","deviceName":"Google Pixel 9","osVersion":"16.0","debug":true,"networkLogs":true,"interactiveDebugging":true,"wdioService":"9.20.1"}],"isNonBstackA11yWDIO":false,"buildIdentifier":"test","browserstackLocal":false,"accessibility":null,"testObservability":true,"browserStackLocalOptions":{"forcelocal":false,"localIdentifier":"wdio-35562"},"testContextOptions":{"skipSessionName":false,"skipSessionStatus":false,"sessionNameOmitTestTitle":false,"sessionNamePrependTopLevelSuiteTitle":false,"sessionNameFormat":""},"buildTag":[]}
|
|
14223
|
+
2025-12-13T13:53:54.974Z CLI info Should start debug utility: undefined
|
|
14224
|
+
2025-12-13T13:53:55.026Z CLI info [testhub:module] [naveen_OSt3Pw] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] Starting testhub from 35566:0
|
|
14225
|
+
2025-12-13T13:53:55.028Z CLI info [naveen_OSt3Pw] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making POST request to https://sdk.browserstack.com
|
|
14226
|
+
2025-12-13T13:53:56.535Z CLI info [testhub:module] [naveen_OSt3Pw] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] startBuild: response=qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev
|
|
14227
|
+
2025-12-13T13:53:56.539Z CLI info [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making POST request to https://api.browserstack.com
|
|
14228
|
+
2025-12-13T13:53:58.413Z CLI info [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making GET request to https://hub.browserstack.com
|
|
14229
|
+
2025-12-13T13:53:59.609Z CLI info [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making GET request to https://hub-apse.browserstack.com
|
|
14230
|
+
2025-12-13T13:54:00.748Z CLI info [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making GET request to https://hub-aps.browserstack.com
|
|
14231
|
+
2025-12-13T13:54:00.785Z CLI info [sdk:service] [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] Driver initialized as primary driver: platformIndex=0
|
|
14232
|
+
2025-12-13T13:54:01.051Z CLI info [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making GET request to https://hub-usw.browserstack.com
|
|
14233
|
+
2025-12-13T13:54:30.040Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] Added the event {
|
|
14234
|
+
event_type: 'CBTSessionCreated',
|
|
14235
|
+
test_run: {
|
|
14236
|
+
uuid: '12b5167d-052e-4081-9a0e-bd10b0134fb5',
|
|
14237
|
+
integrations: { browserstack: [Object] }
|
|
14238
|
+
}
|
|
14239
|
+
} to 35566:0
|
|
14240
|
+
2025-12-13T13:54:30.049Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] Added the event {
|
|
14241
|
+
event_type: 'TestRunStarted',
|
|
14242
|
+
test_run: {
|
|
14243
|
+
type: 'test',
|
|
14244
|
+
framework: 'WebdriverIO-mocha',
|
|
14245
|
+
uuid: '12b5167d-052e-4081-9a0e-bd10b0134fb5',
|
|
14246
|
+
name: 'Yes Shop Prepaid Registration',
|
|
14247
|
+
body: {
|
|
14248
|
+
lang: 'ecmascript',
|
|
14249
|
+
code: 'async () => {\n' +
|
|
14250
|
+
'\n' +
|
|
14251
|
+
' // // File URLs from BrowserStack\n' +
|
|
14252
|
+
" // const links =await Util.F.extractEmailLinks.getEmailLinks('un','apppwd','subject','fromemail')\n" +
|
|
14253
|
+
" // const foundLink = await Util.F.extractEmailLinks.findLinks(links,'texttofind')\n" +
|
|
14254
|
+
' \n' +
|
|
14255
|
+
' // const idCardFileUrl = "https://drive.google.com/file/d/1t5KZ7a6JLS97khFnuUS-_aOa6EY4a9H0/view?usp=sharing"; // Replace with actual file ID for ID card\n' +
|
|
14256
|
+
' // const videoFileUrl = "https://drive.google.com/file/d/1PYMY2LQ-GFFKJ1wC5yRNflcxfA3ATgvW/view?usp=sharing"; // Replace with actual file ID for video\n' +
|
|
14257
|
+
' const el1 = await driver.$("id:com.ytlcomms.ymca:id/yesLogoIv");\n' +
|
|
14258
|
+
' await el1.click();\n' +
|
|
14259
|
+
' await el1.click();\n' +
|
|
14260
|
+
' await el1.click();\n' +
|
|
14261
|
+
' await el1.click();\n' +
|
|
14262
|
+
' await el1.click();\n' +
|
|
14263
|
+
' await el1.click();\n' +
|
|
14264
|
+
' await el1.click();\n' +
|
|
14265
|
+
' await el1.click();\n' +
|
|
14266
|
+
' await el1.click();\n' +
|
|
14267
|
+
' await el1.click();\n' +
|
|
14268
|
+
' const el2 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserId");\n' +
|
|
14269
|
+
' await el2.addValue("alpha_login");\n' +
|
|
14270
|
+
' const el3 = await driver.$("id:com.ytlcomms.ymca:id/etBetaUserPass");\n' +
|
|
14271
|
+
' await el3.addValue("@45kj*3d");\n' +
|
|
14272
|
+
' const el411 = await driver.$("id:com.ytlcomms.ymca:id/btBetaSignIn");\n' +
|
|
14273
|
+
' await el411.click();\n' +
|
|
14274
|
+
' const el51 = await driver.$("id:com.ytlcomms.ymca:id/iotUrl");\n' +
|
|
14275
|
+
' await el51.click();\n' +
|
|
14276
|
+
' /*To scroll to the down of the screen until text is visible */\n' +
|
|
14277
|
+
' await Util.scrollDownToView("GO BACK")\n' +
|
|
14278
|
+
'\n' +
|
|
14279
|
+
' const el61 = await driver.$("id:com.ytlcomms.ymca:id/btGoBack");\n' +
|
|
14280
|
+
' await el61.click();\n' +
|
|
14281
|
+
' const el71 = await driver.$("id:com.ytlcomms.ymca:id/mUserId");\n' +
|
|
14282
|
+
' await el71.addValue("pdc_branch");\n' +
|
|
14283
|
+
' const el81 = await driver.$("id:com.ytlcomms.ymca:id/mPassword");\n' +
|
|
14284
|
+
' await el81.addValue("ytlc@xm1234");\n' +
|
|
14285
|
+
' const el91 = await driver.$("id:com.ytlcomms.ymca:id/btSignIn");\n' +
|
|
14286
|
+
' await el91.click();\n' +
|
|
14287
|
+
' // Start the automation script\n' +
|
|
14288
|
+
' const el4 = await driver.$("-android uiautomator:new UiSelector().text(\\"Registration\\")");\n' +
|
|
14289
|
+
' await el4.click();\n' +
|
|
14290
|
+
'\n' +
|
|
14291
|
+
' const el5 = await driver.$("-android uiautomator:new UiSelector().text(\\"Prepaid\\")");\n' +
|
|
14292
|
+
' await el5.click();\n' +
|
|
14293
|
+
'\n' +
|
|
14294
|
+
' // Trigger ID card upload\n' +
|
|
14295
|
+
' const el6 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");\n' +
|
|
14296
|
+
' await el6.click();\n' +
|
|
14297
|
+
'\n' +
|
|
14298
|
+
' const el7 = await driver.$("id:com.android.permissioncontroller:id/permission_allow_one_time_button");\n' +
|
|
14299
|
+
' await el7.click();\n' +
|
|
14300
|
+
'\n' +
|
|
14301
|
+
' const el8 = await driver.$("id:com.ytlcomms.ymca:id/ekycMyKadBtn");\n' +
|
|
14302
|
+
' await el8.click();\n' +
|
|
14303
|
+
'\n' +
|
|
14304
|
+
' const el9 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");\n' +
|
|
14305
|
+
' await el9.click();\n' +
|
|
14306
|
+
'\n' +
|
|
14307
|
+
' const el10 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");\n' +
|
|
14308
|
+
' await el10.click();\n' +
|
|
14309
|
+
'\n' +
|
|
14310
|
+
` await driver.execute('browserstack_executor: {"action":"cameraImageInjection", "arguments": {"imageUrl" : "media://b44ff746563b5e458e2b5034d3cb25263ad24ebd"}}');\n` +
|
|
14311
|
+
'\n' +
|
|
14312
|
+
' const el11 = await driver.$("id:com.ytlcomms.ymca:id/confirmBtn");\n' +
|
|
14313
|
+
' await el11.click();\n' +
|
|
14314
|
+
' await driver.pause(3000)\n' +
|
|
14315
|
+
'\n' +
|
|
14316
|
+
' const el12 = await driver.$("id:com.sec.android.app.camera:id/bottom_background");\n' +
|
|
14317
|
+
' await el12.click();\n' +
|
|
14318
|
+
'\n' +
|
|
14319
|
+
' await driver.pause(3000)\n' +
|
|
14320
|
+
'\n' +
|
|
14321
|
+
' ////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]\n' +
|
|
14322
|
+
'\n' +
|
|
14323
|
+
` const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");\n` +
|
|
14324
|
+
' await el13.click();\n' +
|
|
14325
|
+
' // const el29 = await driver.$("id:com.ytlcomms.ymca:id/selectCountryBtn");\n' +
|
|
14326
|
+
' // await el29.click();\n' +
|
|
14327
|
+
'\n' +
|
|
14328
|
+
' await driver.pause(10000)\n' +
|
|
14329
|
+
' try {\n' +
|
|
14330
|
+
" await driver.action('pointer')\n" +
|
|
14331
|
+
' .move({\n' +
|
|
14332
|
+
' duration: 0,\n' +
|
|
14333
|
+
' x: 937,\n' +
|
|
14334
|
+
' y: 905\n' +
|
|
14335
|
+
' })\n' +
|
|
14336
|
+
' .down({\n' +
|
|
14337
|
+
' button: 0\n' +
|
|
14338
|
+
' })\n' +
|
|
14339
|
+
' .move({\n' +
|
|
14340
|
+
' duration: 1000,\n' +
|
|
14341
|
+
' x: 1043,\n' +
|
|
14342
|
+
' y: 696\n' +
|
|
14343
|
+
' })\n' +
|
|
14344
|
+
' .up({\n' +
|
|
14345
|
+
' button: 0\n' +
|
|
14346
|
+
' })\n' +
|
|
14347
|
+
' .perform();\n' +
|
|
14348
|
+
'\n' +
|
|
14349
|
+
'\n' +
|
|
14350
|
+
' } catch (e) {\n' +
|
|
14351
|
+
" console.error('Error in right :', e);\n" +
|
|
14352
|
+
'\n' +
|
|
14353
|
+
' }\n' +
|
|
14354
|
+
' try {\n' +
|
|
14355
|
+
" await driver.action('pointer')\n" +
|
|
14356
|
+
' .move({\n' +
|
|
14357
|
+
' duration: 0,\n' +
|
|
14358
|
+
' x: 134,\n' +
|
|
14359
|
+
' y: 1498\n' +
|
|
14360
|
+
' })\n' +
|
|
14361
|
+
' .down({\n' +
|
|
14362
|
+
' button: 0\n' +
|
|
14363
|
+
' })\n' +
|
|
14364
|
+
' .move({\n' +
|
|
14365
|
+
' duration: 1000,\n' +
|
|
14366
|
+
' x: 28,\n' +
|
|
14367
|
+
' y: 1723\n' +
|
|
14368
|
+
' })\n' +
|
|
14369
|
+
' .up({\n' +
|
|
14370
|
+
' button: 0\n' +
|
|
14371
|
+
' })\n' +
|
|
14372
|
+
' .perform();\n' +
|
|
14373
|
+
'\n' +
|
|
14374
|
+
' //\n' +
|
|
14375
|
+
' } catch (e) {\n' +
|
|
14376
|
+
" console.error('Error in left:', e);\n" +
|
|
14377
|
+
'\n' +
|
|
14378
|
+
' }\n' +
|
|
14379
|
+
' await driver.pause(10000) // Confirm upload\n' +
|
|
14380
|
+
'\n' +
|
|
14381
|
+
` const el16 = await driver.$("//android.widget.TextView[@text='Done']");\n` +
|
|
14382
|
+
' await el16.click();\n' +
|
|
14383
|
+
'\n' +
|
|
14384
|
+
' await driver.pause(30000)\n' +
|
|
14385
|
+
' const el17 = await driver.$("id:com.ytlcomms.ymca:id/newRb");\n' +
|
|
14386
|
+
' await el17.click();\n' +
|
|
14387
|
+
'\n' +
|
|
14388
|
+
' // await Util.F.scrollDownToView("Facial Recognition")\n' +
|
|
14389
|
+
'\n' +
|
|
14390
|
+
' const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");\n' +
|
|
14391
|
+
' await el18.click();\n' +
|
|
14392
|
+
' const el19 = await driver.$("id:com.ytlcomms.ymca:id/skipBtn");\n' +
|
|
14393
|
+
' await el19.click();\n' +
|
|
14394
|
+
'\n' +
|
|
14395
|
+
` await driver.execute('browserstack_executor: {"action":"cameraVideoInjection", "arguments": {"videoUrl" : "media://1920c80136e1c7e2278e15d820845ed64a676e92"}}');\n` +
|
|
14396
|
+
'\n' +
|
|
14397
|
+
' const el20 = await driver.$("id:com.ytlcomms.ymca:id/startBtn");\n' +
|
|
14398
|
+
' await el20.click();\n' +
|
|
14399
|
+
'\n' +
|
|
14400
|
+
' await driver.pause(3000)\n' +
|
|
14401
|
+
'\n' +
|
|
14402
|
+
' const el21 = await driver.$("id:com.ytlcomms.ymca:id/captureVideo");\n' +
|
|
14403
|
+
' await el21.click();\n' +
|
|
14404
|
+
'\n' +
|
|
14405
|
+
' await driver.pause(10000)\n' +
|
|
14406
|
+
'\n' +
|
|
14407
|
+
' ////android.widget.Button[@resource-id="com.sec.android.app.camera:id/okay"]\n' +
|
|
14408
|
+
'\n' +
|
|
14409
|
+
` // const el13 = await driver.$("//android.widget.Button[@resource-id='com.sec.android.app.camera:id/okay']");\n` +
|
|
14410
|
+
' // await el13.click();\n' +
|
|
14411
|
+
' //99999999\n' +
|
|
14412
|
+
'\n' +
|
|
14413
|
+
'\n' +
|
|
14414
|
+
' // Trigger video upload for face recognition\n' +
|
|
14415
|
+
' // const el18 = await driver.$("id:com.ytlcomms.ymca:id/frRecognitionBtn");\n' +
|
|
14416
|
+
' // await el18.click();\n' +
|
|
14417
|
+
' // await driver.execute("mobile: uploadFile", { file: videoFileUrl }); // Upload video\n' +
|
|
14418
|
+
'\n' +
|
|
14419
|
+
' // Complete the remaining flow\n' +
|
|
14420
|
+
` const el25 = await driver.$("-android uiautomator:new UiSelector().text('-- PLAN --')");\n` +
|
|
14421
|
+
' await el25.click();\n' +
|
|
14422
|
+
'\n' +
|
|
14423
|
+
` const el26 = await driver.$("-android uiautomator:new UiSelector().text('YES 5G Prepaid')");\n` +
|
|
14424
|
+
' await el26.click();\n' +
|
|
14425
|
+
'\n' +
|
|
14426
|
+
' const el44 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");\n' +
|
|
14427
|
+
' await el44.click();\n' +
|
|
14428
|
+
'\n' +
|
|
14429
|
+
' const el40 = await driver.$("id:com.ytlcomms.ymca:id/eSimRb");\n' +
|
|
14430
|
+
' await el40.click();\n' +
|
|
14431
|
+
' const el41 = await driver.$("id:com.ytlcomms.ymca:id/optionalMobTitleLabel");\n' +
|
|
14432
|
+
' await el41.click();\n' +
|
|
14433
|
+
' //add scroll here\n' +
|
|
14434
|
+
'\n' +
|
|
14435
|
+
` const el42 = await driver.$("-android uiautomator:new UiSelector().text('01117242402')");\n` +
|
|
14436
|
+
' await el42.click();\n' +
|
|
14437
|
+
' const el43 = await driver.$("id:com.ytlcomms.ymca:id/md_buttonDefaultPositive");\n' +
|
|
14438
|
+
' await el43.click();\n' +
|
|
14439
|
+
' //add scroll to end here\n' +
|
|
14440
|
+
'\n' +
|
|
14441
|
+
' const el45 = await driver.$("id:com.ytlcomms.ymca:id/submitBtn");\n' +
|
|
14442
|
+
' await el45.click();\n' +
|
|
14443
|
+
'\n' +
|
|
14444
|
+
'\n' +
|
|
14445
|
+
' }'
|
|
14446
|
+
},
|
|
14447
|
+
identifier: 'Yes Shop Prepaid Registration',
|
|
14448
|
+
scope: 'Yes Shop Prepaid Registration - Yes Shop Prepaid Registration',
|
|
14449
|
+
scopes: [ 'Yes Shop Prepaid Registration' ],
|
|
14450
|
+
file_name: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14451
|
+
vc_filepath: 'wdio_fresh_framework/wdio_fresh_framework/android/samplescript_x.js',
|
|
14452
|
+
location: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14453
|
+
result: 'pending',
|
|
14454
|
+
duration_in_ms: null,
|
|
14455
|
+
started_at: '2025-12-13T13:54:29.999Z',
|
|
14456
|
+
failure: undefined,
|
|
14457
|
+
failure_type: undefined,
|
|
14458
|
+
failure_reason: undefined,
|
|
14459
|
+
retry_of: null,
|
|
14460
|
+
custom_metadata: undefined,
|
|
14461
|
+
tags: [],
|
|
14462
|
+
customRerunParam: { rerun_name: undefined },
|
|
14463
|
+
hooks: [],
|
|
14464
|
+
product_map: {
|
|
14465
|
+
observability: true,
|
|
14466
|
+
accessibility: false,
|
|
14467
|
+
percy: false,
|
|
14468
|
+
automate: true,
|
|
14469
|
+
app_automate: false
|
|
14470
|
+
}
|
|
14471
|
+
},
|
|
14472
|
+
logs: []
|
|
14473
|
+
} to 35566:0
|
|
14474
|
+
2025-12-13T13:54:30.554Z CLI info [testhub:request-queue-handler] [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] Processing batch event [
|
|
14475
|
+
{
|
|
14476
|
+
event_type: 'CBTSessionCreated',
|
|
14477
|
+
test_run: {
|
|
14478
|
+
uuid: '12b5167d-052e-4081-9a0e-bd10b0134fb5',
|
|
14479
|
+
integrations: [Object]
|
|
14480
|
+
}
|
|
14481
|
+
},
|
|
14482
|
+
{
|
|
14483
|
+
event_type: 'TestRunStarted',
|
|
14484
|
+
test_run: {
|
|
14485
|
+
type: 'test',
|
|
14486
|
+
framework: 'WebdriverIO-mocha',
|
|
14487
|
+
uuid: '12b5167d-052e-4081-9a0e-bd10b0134fb5',
|
|
14488
|
+
name: 'Yes Shop Prepaid Registration',
|
|
14489
|
+
body: [Object],
|
|
14490
|
+
identifier: 'Yes Shop Prepaid Registration',
|
|
14491
|
+
scope: 'Yes Shop Prepaid Registration - Yes Shop Prepaid Registration',
|
|
14492
|
+
scopes: [Array],
|
|
14493
|
+
file_name: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14494
|
+
vc_filepath: 'wdio_fresh_framework/wdio_fresh_framework/android/samplescript_x.js',
|
|
14495
|
+
location: 'wdio_fresh_framework/android/samplescript_x.js',
|
|
14496
|
+
result: 'pending',
|
|
14497
|
+
duration_in_ms: null,
|
|
14498
|
+
started_at: '2025-12-13T13:54:29.999Z',
|
|
14499
|
+
failure: undefined,
|
|
14500
|
+
failure_type: undefined,
|
|
14501
|
+
failure_reason: undefined,
|
|
14502
|
+
retry_of: null,
|
|
14503
|
+
custom_metadata: undefined,
|
|
14504
|
+
tags: [],
|
|
14505
|
+
customRerunParam: [Object],
|
|
14506
|
+
hooks: [],
|
|
14507
|
+
product_map: [Object]
|
|
14508
|
+
},
|
|
14509
|
+
logs: []
|
|
14510
|
+
}
|
|
14511
|
+
] to 35566:0
|
|
14512
|
+
2025-12-13T13:54:30.559Z CLI info [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] [PRODUCTION] Making POST request to https://collector-observability.browserstack.com
|
|
14513
|
+
2025-12-13T13:54:31.557Z CLI info [main] [naveen_OSt3Pw] [qrfdl4h9toonkgy3bv4f6sw0wovacis9qx4qkwev] [b7c44fb3-b6da-4154-8e6d-5f05fe1aa394] Received graceful signal termination, performing cleanup
|