@@ -17,7 +17,9 @@ const waitTime = 2; // 2 seconds
1717// const GRID_URL = "https://haiderk:V2mDZgIXHVEFxPfVu3cODSDpe9cZ4MT2Z1ZkDbp5uMJ8XL0nxh@stage-hub.lambdatestinternal.com/wd/hub";
1818// const GRID_URL = "https://smartui-internal:jNbKw8iwoDlqGuBfIBtd5F1Cnr4A0H07ifYNDGpylobjWyA2QX@stage-hub.lambdatestinternal.com/wd/hub";
1919// const GRID_URL = "https://haiderk:i7vF5r66IYgsgE9Hp5t6hZqd5PkQX021FgpWRC70mp0ShbFh1R@hub.lambdatest.com/wd/hub";
20- const GRID_URL = "https://ltgdprhak:1JF7nbtNVDTSFQdstywJQxVqaaIEX87sP7q7ghbFjwpcm5Kbgv@stage-hub-eu.lambdatestinternal.com/wd/hub" ;
20+ // const GRID_URL = "https://ltgdprhak:1JF7nbtNVDTSFQdstywJQxVqaaIEX87sP7q7ghbFjwpcm5Kbgv@stage-hub-eu.lambdatestinternal.com/wd/hub";
21+ const GRID_URL = "https://gdpreu:Fw6MmoQg09v3Zv8I1OhQS5CWlJX3vIj1IAYAtHFtZu9a53eqAB@stage-hub-eu.lambdatestinternal.com/wd/hub" ;
22+
2123
2224
2325async function searchTextOnGoogle ( ) {
@@ -43,7 +45,7 @@ async function searchTextOnGoogle() {
4345 build : `${ platform } ${ browserName } ${ version } ` , // name of the build
4446 // "smartUI.build": "rachaelc/sc-118267/no-availability-1722894770",/\
4547 "smartUI.build" : "GDPR-PR-CHECK" ,
46- "smartUI.project" : "Final_Testing_EU- GDPR-WEB " ,
48+ "smartUI.project" : "GDPR-EU-GITHUB-PR-CHECK " ,
4749 github : {
4850 url : process . env . GITHUB_URL ,
4951 } ,
@@ -78,17 +80,17 @@ async function startTest(gridUrl, capabilities, name) {
7880 const duration = moment . duration ( end_date . diff ( start_date ) ) ;
7981 console . log ( `${ caps . name } : Setup Time: ${ duration . asSeconds ( ) } seconds` ) ;
8082
81- const url = "https://www.lambdatest.com/" ;
82- // const url = "https://www.flipkart.com/";
83+ // const url = "https://www.lambdatest.com/";
84+ const url = "https://www.flipkart.com/" ;
8385 // const url = "https://www.samsung.com/";
8486 console . log ( url ) ;
8587 await driver . get ( url ) ;
8688
8789 console . log ( "taking screenshot ..." ) ;
8890 setTimeout ( ( ) => {
89- driver . executeScript ( `smartui.takeScreenshot=@#$%^&*()_+[]\{}|;':<> ` ) . then ( ( ) => {
91+ driver . executeScript ( `smartui.takeScreenshot=GDPR-TEST ` ) . then ( ( ) => {
9092
91- driver . executeScript ( `smartui.fetchScreenshotStatus=@#$%^&*()_+[]\{}|;':<> ` ) . then ( out => {
93+ driver . executeScript ( `smartui.fetchScreenshotStatus=GDPR-TEST ` ) . then ( out => {
9294 console . log ( "response:" , out ) ;
9395 } ) . catch ( err => {
9496 console . error ( "Error fetching screenshot status:" , err ) ;
0 commit comments