Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v0.0.5 #261

Draft
wants to merge 55 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
171d669
feat: pass context script for webdriver
amhsirak Dec 13, 2024
cd05ddf
chore: lint
amhsirak Dec 13, 2024
c49e70a
chrome and chromium user agent
amhsirak Dec 13, 2024
b173ce3
chore: remove commented code
amhsirak Dec 13, 2024
0618401
feat: args
amhsirak Dec 14, 2024
4469325
chore: sync compose master <-> develop
amhsirak Dec 14, 2024
7f48464
feat: add page navigation timeout
RohitR311 Dec 14, 2024
bdf908e
feat: add domcontentloaded wait load state
RohitR311 Dec 14, 2024
f38230d
feat: revert to networkidle for wait load state
RohitR311 Dec 14, 2024
7ce7a15
feat: check for selector visibility in getState
RohitR311 Dec 14, 2024
ea2c36f
Merge pull request #257 from getmaxun/item0-fix
amhsirak Dec 14, 2024
e22c019
feat: rotate user agents
amhsirak Dec 14, 2024
320f24e
feat: shm & sandbox args
amhsirak Dec 14, 2024
ffe87b0
feat: user getUserAgent()
amhsirak Dec 14, 2024
e701452
feat: remove container tags
amhsirak Dec 14, 2024
cb09653
feat: accept getList in getRect and getElementInfo
amhsirak Dec 14, 2024
ddb880d
fix: capture text selection
amhsirak Dec 14, 2024
97e7c89
feat: re-add listSelector empty check for child selection
amhsirak Dec 14, 2024
0c3b1e3
feat: paass listSelect
amhsirak Dec 14, 2024
e147693
fix: dont pass listSelector to non unique
amhsirak Dec 16, 2024
4a94960
feat: push parentSelector
amhsirak Dec 16, 2024
23ac134
fix: add pair to workflow before decision socket emission
RohitR311 Dec 16, 2024
94df794
feat: conditionally compute non unique
amhsirak Dec 16, 2024
52b7671
feat: !push parentSelector
amhsirak Dec 16, 2024
647cd62
feat: add listSelector param
RohitR311 Dec 17, 2024
a9dc4c8
feat: add conditional check to collect matching classes
RohitR311 Dec 17, 2024
0ed4c8a
Merge pull request #264 from getmaxun/listout-fix
amhsirak Dec 17, 2024
fa2d609
Merge pull request #259 from getmaxun/webdrive-patch
amhsirak Dec 17, 2024
c25975b
Merge pull request #266 from getmaxun/sel-fix
amhsirak Dec 17, 2024
e34cfda
fix: skip click action if selector not visible
RohitR311 Dec 17, 2024
0783cbc
feat: add date selection handler
RohitR311 Dec 18, 2024
7ac79dc
feat: add date selection event handlers
RohitR311 Dec 18, 2024
7eea077
feat: add interface to hanle date picker event data
RohitR311 Dec 18, 2024
ec4d1ac
feat: trigger socket event to display date picker
RohitR311 Dec 18, 2024
9ee54d1
feat: rm onHandleSelct callback function
RohitR311 Dec 18, 2024
2e30192
feat: add date picker component to input date
RohitR311 Dec 18, 2024
9f40124
Merge pull request #267 from getmaxun/click-fix
amhsirak Dec 18, 2024
14079fa
feat: date input check using element information
RohitR311 Dec 19, 2024
a6ed8c6
feat: check for select type and emit dropdown socket event
RohitR311 Dec 19, 2024
f872051
feat: add dropdown selection action pair to workflow
RohitR311 Dec 19, 2024
d8b5ae4
feat: add dropdown selection handler functions and register socket event
RohitR311 Dec 19, 2024
7bd7a84
feat: tigger socket event to display dropdown
RohitR311 Dec 19, 2024
13b92ee
feat: add dropdown component to input dropdown
RohitR311 Dec 19, 2024
947a6b7
feat: check for time input field and emit socket event
RohitR311 Dec 19, 2024
0b2d099
feat: add time selection event handlers
RohitR311 Dec 19, 2024
66f3ccd
trigger socket event to display time picker
RohitR311 Dec 19, 2024
a97837d
feat: add time picker component to input time
RohitR311 Dec 19, 2024
e823e7b
Merge pull request #268 from getmaxun/handle-inputs
amhsirak Dec 19, 2024
60b901a
feat: handle select tags
amhsirak Dec 20, 2024
e1266a1
Merge pull request #272 from getmaxun/input-sel
amhsirak Dec 20, 2024
7860d40
feat: handle input type time
amhsirak Dec 20, 2024
4b2c072
feat: assign proper types
amhsirak Dec 20, 2024
81eb322
feat: handle input type date
amhsirak Dec 20, 2024
889107d
chore: lint
amhsirak Dec 20, 2024
236e741
Merge pull request #273 from getmaxun/input-sel
amhsirak Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add page navigation timeout
  • Loading branch information
RohitR311 committed Dec 14, 2024
commit 7f48464eea993f0d4468942cdeb77c87398191f8
6 changes: 4 additions & 2 deletions maxun-core/src/interpret.ts
Original file line number Diff line number Diff line change
@@ -365,7 +365,7 @@ export default class Interpreter extends EventEmitter {
try {
const newPage = await context.newPage();
await newPage.goto(link);
await newPage.waitForLoadState('networkidle');
await newPage.waitForLoadState('domcontentloaded');
await this.runLoop(newPage, this.initializedWorkflow!);
} catch (e) {
// `runLoop` uses soft mode, so it recovers from it's own exceptions
@@ -576,7 +576,7 @@ export default class Interpreter extends EventEmitter {
}
await Promise.all([
nextButton.dispatchEvent('click'),
page.waitForNavigation({ waitUntil: 'networkidle' })
page.waitForNavigation({ waitUntil: 'domcontentloaded' })
]);

await page.waitForTimeout(1000);
@@ -767,6 +767,8 @@ export default class Interpreter extends EventEmitter {
public async run(page: Page, params?: ParamType): Promise<void> {
this.log('Starting the workflow.', Level.LOG);
const context = page.context();

page.setDefaultNavigationTimeout(100000);

// Check proxy settings from context options
const contextOptions = (context as any)._options;