await ClickByXpath doesn't works!

etnajumpers

New Member
VIP
Joined
Apr 12, 2020
Messages
9
Reaction score
0
Achievement
Dear All,
I need your support!
I created a webpage with a list of links that I'd like to click automatically with a macro.

This is the link to the webpage: http://wowappitalia.it/aparat/aparat-directory.html

and this is the macro that I created:

ResizeTo (1920, 1280);

await WaitForLoading();
await Delay(Random (3000, 5000));
for (var i = 0; i < 2224; {
await Delay(Random (10, 30));
ScrollTo (0, );
i += 40;
}
await Delay(Random(5000,5000));
await ClickByXpath(GenerateXpath("a", "href", "https://aparat.cam%"));

await WaitForLoading();

await Delay(Random (5000, 10000));
ClickByCoordinates (593, 506, 673, 560, 1);
await Delay(Random (5000, 10000));
ClickByCoordinates (593, 506, 673, 560, 1);
await Delay(Random (5000, 10000));

ClickByCoordinates (593, 506, 673, 560, 1);

I expect that after the page is loaded and after there is a scroll down and scroll up, a random link starting with "https://aparat.cam" will be clicked, but this will not happen.
Can you tell me where I'm wrong?
Thank you in advance!
 
Last edited:

etnajumpers

New Member
VIP
Joined
Apr 12, 2020
Messages
9
Reaction score
0
Achievement
HI, yes I know, for this reason, I asked support to understand why. :oops:
 

etnajumpers

New Member
VIP
Joined
Apr 12, 2020
Messages
9
Reaction score
0
Achievement
Hi,
I tried but it didn't work. I found another solution. I'm using an external script to start a random link.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu