Skip to content

Commit

Permalink
Insert half-second delay after synthetic 'click' event
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 2, 2024
1 parent 607e183 commit 59fe22a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions legiscope.nodejs/sp-test-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,7 @@ async function monitor()
p.triggerable--;
p.trigger_node = link_node_id;

await DOM.describeNode({nodeId: link_node_id});
await traverse_to( link_node_id, link_node );

if ( traversal_abort || exception_abort ) {
Expand Down Expand Up @@ -2541,6 +2542,7 @@ async function monitor()
trigger_page_fetch_init_xhr(p);

click_result = await clickon_node( link_node_id, link_node, clickon_callback );
await sleep(500);

if ( !(click_result === true) && !isNaN(parseInt(p.traversal_request_id)) )
{//{{{
Expand Down Expand Up @@ -2619,6 +2621,7 @@ async function monitor()
// Decompose the dialog container to get at
// the good bits: The Close button and link text.
let dialog_motif = new Array;
p.closer_node = 0;
await inorder_traversal(
{ branchpat : dialog_motif, traversal_parent : null, nodestack : new Map },
dp,
Expand Down

0 comments on commit 59fe22a

Please sign in to comment.