-
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 #25 from chriSmile0/process_usage
Process usage
- Loading branch information
Showing
19 changed files
with
1,294 additions
and
344 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 chriSmile0 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
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
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,6 +1,5 @@ | ||
<?php | ||
|
||
use function PHPSTORM_META\type; | ||
|
||
$test = "0011_2_23_Aix_25km"; | ||
$test2 = "0012_3_24_Paris_800km"; | ||
|
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,8 +1,15 @@ | ||
{ | ||
"dependencies": { | ||
"puppeteer": "^21.7.0", | ||
"chromedriver": "^123.0.4", | ||
"puppeteer": "^22.6.5", | ||
"puppeteer-extra": "^3.3.6", | ||
"puppeteer-extra-plugin-adblocker": "^2.13.6", | ||
"puppeteer-extra-plugin-stealth": "^2.11.2" | ||
"puppeteer-extra-plugin-stealth": "^2.11.2", | ||
"selenium-stealth": "^1.0.1", | ||
"selenium-webdriver": "^4.20.0", | ||
"geckodriver":"4.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.12.7" | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const {By, Builder, Browser} = require('selenium-webdriver'); | ||
const assert = require("assert"); | ||
|
||
(async function firstTest() { // TEST SOON WAITED WORK, TRY CLICK | ||
let driver; | ||
|
||
try { | ||
driver = await new Builder().forBrowser(Browser.CHROME).build(); | ||
await driver.get('https://intermarche.com'); | ||
|
||
let title = await driver.getTitle(); | ||
console.log(title); | ||
//assert.equal("Web form", title); | ||
|
||
await driver.manage().setTimeouts({implicit: 500}); | ||
|
||
/*let textBox = await driver.findElement(By.name('my-text')); | ||
let submitButton = await driver.findElement(By.css('button')); | ||
await textBox.sendKeys('Selenium'); | ||
await submitButton.click(); | ||
let message = await driver.findElement(By.id('message')); | ||
let value = await message.getText(); | ||
assert.equal("Received!", value);*/ | ||
} catch (e) { | ||
console.log(e) | ||
} finally { | ||
await driver.quit(); | ||
} | ||
}()) |
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
Oops, something went wrong.