gromazazzz
gromazazzz

Reputation: 9

IBM BPM delay on load event

I want to make a button click after 10 seconds when the UI loads. I've tried below code in the "On load" event, but seems that the timer doesn't work:

function myFunction() {

me.click(); }

setTimeout(myFunction, 10000);

Any ideas how to trigger the timer in "On load" event?

Upvotes: 0

Views: 405

Answers (1)

Yogesh Raut
Yogesh Raut

Reputation: 5

You can write something like below. 1.Call buttonClick() function on OnLoadEvent.

buttonClick(){
 setTimeout(page.ui.get(<Control Name>).click(),10000)
}

OR

window.load(){
 setTimeout(function myFunction() {
 page.ui.get(<Control Name>).click()},10000)
}

Upvotes: 0

Related Questions