[Help} Clicks Macro

plets8

New Member
Joined
Nov 11, 2019
Messages
5
Reaction score
1
Hello, I have the premium plan.

I want to put a macro to click on any menu / link within my site.

I'm trying with an unsuccessful macro below

// click on a link href contains https://divulgavagas.com.br
Target GenerateXpath ("a", "href", "https://divulgavagas.com.br");
ClickRandomLink (theTarget);

Can you give me a light?
 
  • Like
Reactions: weblord

creativecool

New Member
Rule The Galaxy
VIP
Joined
Jul 30, 2019
Messages
2
Reaction score
0
Achievement
try this
Code:
ClickByXpath(GenerateXpath("a", "href", "%divulgavagas.com.br%"));
 

plets8

New Member
Joined
Nov 11, 2019
Messages
5
Reaction score
1
@creativecool


Would it look like this in my case?

ClickRandomInternalLink (https://divulgavagas.com.br/);
 

plets8

New Member
Joined
Nov 11, 2019
Messages
5
Reaction score
1
creativecool post_id=3341 time=1573486192 user_id=676 said:
try this
Code:
ClickByXpath(GenerateXpath("a", "href", "%divulgavagas.com.br%"));
Only this?

ClickByXpath (GenerateXpath ("a", "href", "% divulgavagas.com.br%"));


or some more code?
 

creativecool

New Member
Rule The Galaxy
VIP
Joined
Jul 30, 2019
Messages
2
Reaction score
0
Achievement
you need more code, not just that one

try this
Code:
await WaitForLoading();
await Delay(Random(2000, 3000));
SendMouseWheel(0, -500);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -600);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -800);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -200);
await Delay(Random(2000, 3000));
SendMouseWheel(0, 800);
await Delay(Random(2000, 3000));
ClickRandomInternalLink();
await WaitForLoading();
await Delay(Random(2000, 3000));
SendMouseWheel(0, -500);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -600);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -800);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -200);
await Delay(Random(2000, 3000));
SendMouseWheel(0, 800);
await Delay(Random(2000, 3000));
ClickByXpath(GenerateXpath("a", "href", "%divulgavagas.com.br%"));
await WaitForLoading();
await Delay(Random(2000, 3000));
SendMouseWheel(0, -500);
change 2000 & 3000, waiting time in millisecond
Code:
await Delay(Random(2000, 3000));
change -500, - to scrol down
Code:
SendMouseWheel(0, -500);
for internal link use
Code:
ClickRandomInternalLink();
random link that contains divulgavagas.com.br
Code:
ClickByXpath(GenerateXpath("a", "href", "%divulgavagas.com.br%"));
 

plets8

New Member
Joined
Nov 11, 2019
Messages
5
Reaction score
1
creativecool post_id=3345 time=1573488638 user_id=676 said:
you need more code, not just that one

try this
Code:
await WaitForLoading();
await Delay(Random(2000, 3000));
SendMouseWheel(0, -500);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -600);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -800);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -200);
await Delay(Random(2000, 3000));
SendMouseWheel(0, 800);
await Delay(Random(2000, 3000));
ClickRandomInternalLink();
await WaitForLoading();
await Delay(Random(2000, 3000));
SendMouseWheel(0, -500);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -600);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -800);
await Delay(Random(2000, 3000));
SendMouseWheel(0, -200);
await Delay(Random(2000, 3000));
SendMouseWheel(0, 800);
await Delay(Random(2000, 3000));
ClickByXpath(GenerateXpath("a", "href", "%divulgavagas.com.br%"));
await WaitForLoading();
await Delay(Random(2000, 3000));
SendMouseWheel(0, -500);
change 2000 & 3000, waiting time in millisecond
Code:
await Delay(Random(2000, 3000));
change -500, - to scrol down
Code:
SendMouseWheel(0, -500);
for internal link use
Code:
ClickRandomInternalLink();
random link that contains divulgavagas.com.br
Code:
ClickByXpath(GenerateXpath("a", "href", "%divulgavagas.com.br%"));

It worked!
Gratitude!
 

weblord

New Member
Premium
Joined
Dec 3, 2019
Messages
51
Reaction score
4
Achievement
you might want to try this as well taken from the manual
Code:
await ClickByXpath(GenerateXpath("a", "href", "https://divulgavagas.com.br%"));
perhaps it's https?
 

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