This commit is contained in:
Tiệp Sunflower
2023-03-06 14:23:39 +07:00
commit aa9c76c82f
2234 changed files with 449471 additions and 0 deletions

24
test/searchTest.js Normal file
View File

@@ -0,0 +1,24 @@
const { Builder, By, Key } = require("selenium-webdriver");
require('chromedriver');
async function searchTest() {
let driver = await new Builder().forBrowser('chrome').build();
//
await driver.get("https://mialala.vn/")
// nhap text tìm kiếm
var text_search = 'Đồ ngủ';
await driver.findElement(By.id("js-global-seach")).sendKeys(text_search, Key.RETURN);
setInterval(() => {
driver.close()
}, 2000);
}
searchTest()