-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from eng1n88r/feature/fix-bugs
fix: Fix latest issues.
- Loading branch information
Showing
6 changed files
with
2,871 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
////LINUX: | ||
const pathToChromeProfile = '/home/user/.config/chromium/Default/BING'; | ||
// const pathToChromeProfile = '/home/user/.config/chromium/Default/BING'; | ||
|
||
////WINDOWS | ||
// const pathToChromeProfile = 'C:/Users/user/AppData/Local/Google/Chrome/User Data/BING'; | ||
const pathToChromeProfile = 'C:/Users/exbarboss/AppData/Local/Microsoft/Edge/User Data/Default'; | ||
const userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62'; | ||
|
||
exports.config = { | ||
seleniumAddress: 'http://localhost:4444/wd/hub', | ||
specs: ['desktop.search.js'], | ||
allScriptsTimeout: 50000, | ||
capabilities: { | ||
'browserName': 'chrome', | ||
'chromeOptions': { | ||
'args': ['user-data-dir=' + pathToChromeProfile] | ||
} | ||
} | ||
// capabilities: { | ||
// 'browserName': 'MicrosoftEdge', | ||
// 'chromeOptions': { | ||
// 'args': [ | ||
// 'user-agent=' + userAgent, | ||
// 'user-data-dir=' + pathToChromeProfile | ||
// ] | ||
// } | ||
// } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
const userAgent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1'; | ||
|
||
////LINUX: | ||
const pathToChromeProfile = '/home/user/.config/chromium/Default/BING'; | ||
// const pathToChromeProfile = '/home/user/.config/chromium/Default/BING'; | ||
|
||
////WINDOWS | ||
// const pathToChromeProfile = 'C:/Users/user/AppData/Local/Google/Chrome/User Data/BING'; | ||
const pathToChromeProfile = 'C:/Users/exbarboss/AppData/Local/Microsoft/Edge/User Data/Default'; | ||
|
||
exports.config = { | ||
seleniumAddress: 'http://localhost:4444/wd/hub', | ||
specs: ['mobile.search.js'], | ||
allScriptsTimeout: 50000, | ||
capabilities: { | ||
'browserName': 'chrome', | ||
'chromeOptions': { | ||
'args': [ | ||
'user-agent=' + userAgent, | ||
'user-data-dir=' + pathToChromeProfile | ||
] | ||
} | ||
} | ||
// capabilities: { | ||
// 'browserName': 'MicrosoftEdge', | ||
// 'chromeOptions': { | ||
// 'args': [ | ||
// 'user-agent=' + userAgent, | ||
// 'user-data-dir=' + pathToChromeProfile | ||
// ] | ||
// } | ||
// } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const helper = require('./helpers/utils'); | ||
|
||
describe('bing mobile search', () => helper.search('sbBtn')); | ||
describe('bing mobile search', () => helper.search('sb_form_go')); |
Oops, something went wrong.