Search found 883 matches

by Dorian (MJT support)
Thu Apr 01, 2021 5:03 pm
Forum: Technical / Scripting
Topic: fsStayOnTop not working
Replies: 3
Views: 80

Re: fsStayOnTop not working

Cheers JRL. We can always rely on you in a pinch. :)
by Dorian (MJT support)
Thu Apr 01, 2021 1:38 pm
Forum: Technical / Scripting
Topic: fsStayOnTop not working
Replies: 3
Views: 80

Re: fsStayOnTop not working

fsStayOnTop sometimes presents us with a conundrum. There really is no such thing as stay on top in Windows. fsStayOnTop is a fudge. Windows doesn't let apps force themselves to the top.

Also what if you have two windows that set themselves to stay on top?
by Dorian (MJT support)
Thu Apr 01, 2021 10:42 am
Forum: Technical / Scripting
Topic: Change download folder and file name on chromedriver
Replies: 9
Views: 143

Re: Change download folder and file name on chromedriver

I was experimenting with this a little while ago, and didn't manage to find a way. There are some great mind here though, and some of those have delved quite deeply into ChromeDriver options. I'd be doing it the same way you already are unless someone finds a way to do it. The question in the meanti...
by Dorian (MJT support)
Tue Mar 30, 2021 4:53 pm
Forum: Beginners
Topic: ChromeFindElements Button click not working
Replies: 10
Views: 192

Re: ChromeFindElements Button click not working

A sizeable part of automation is experimentation. Partly because we're often working on something different. And sometimes something unexpected just seems to make something work. That's the first time I've tried doing it that way, and I don't even know why I tried it. I guess it's just another possi...
by Dorian (MJT support)
Tue Mar 30, 2021 2:58 pm
Forum: Technical / Scripting
Topic: SOLVED: CHROMEDRIVER_OPTIONS exclude switches
Replies: 3
Views: 81

Re: SOLVED: CHROMEDRIVER_OPTIONS exclude switches

That's quite a discovery you made there!

I'd tried Let>CHROMEDRIVER_OPTIONS=disable-infobars hoping in vain that would remove it.

I'd read about it in vasious places, but it doesn't seem to be in this quite exhaustive list : https://peter.sh/experiments/chromium-c ... -switches/
by Dorian (MJT support)
Tue Mar 30, 2021 2:47 pm
Forum: Beginners
Topic: ChromeFindElements Button click not working
Replies: 10
Views: 192

Re: ChromeFindElements Button click not working

The odd thing is that clicking the crayon worked for me every single time I tried it in the editor, but not when run normally. I tried a lot of different experiments, but in the end found patience and persistence to be the key - click it, wait, click it again, wait.... this worked for me 5 times out...
by Dorian (MJT support)
Mon Mar 29, 2021 6:14 pm
Forum: Beginners
Topic: ChromeFindElements Button click not working
Replies: 10
Views: 192

Re: ChromeFindElements Button click not working

This clicks on crayon 1. //Guest ChromeFindElements>session_id,xpath,//a[@id='lienInvite'],el1 ChromeElementAction>session_id,el1_1,click //Products ChromeFindElements>session_id,xpath,//a[@id='OngletProduit'],el2 ChromeElementAction>session_id,el2_1,click //Occupation (crayon) ChromeFindElements>se...
by Dorian (MJT support)
Mon Mar 29, 2021 3:49 pm
Forum: Beginners
Topic: ChromeFindElements Button click not working
Replies: 10
Views: 192

Re: ChromeFindElements Button click not working

Are you able to send us the URL so we can have a look please?
by Dorian (MJT support)
Mon Mar 29, 2021 10:36 am
Forum: Beginners
Topic: ChromeFindElements Button click not working
Replies: 10
Views: 192

Re: ChromeFindElements Button click not working

It doesn't look like you're doing anything wrong. That's exactly the same code I'd use. If you double click the elementBtnProf array in the watch list, what do you see? What is the value of elementBtnProf_count? If it's 0, it's not finding that element, which means maybe it's in a frame? This may he...
by Dorian (MJT support)
Fri Mar 26, 2021 4:27 pm
Forum: General Discussion
Topic: How can I write a dialog
Replies: 1
Views: 113

Re: How can I write a dialog

Have you looked at these yet, just to get the fundamentals? https://help.mjtnet.com/article/40-an-introduction-to-custom-dialogs-creating-a-simple-modal-dialog https://help.mjtnet.com/article/41-an-introduction-to-custom-dialogs-part-2-more-objects-and-method-event-handlers This does what you need :...
by Dorian (MJT support)
Thu Mar 25, 2021 5:52 pm
Forum: Beginners
Topic: Excel functions to move
Replies: 5
Views: 109

Re: Excel functions to move

Always happy to help.
by Dorian (MJT support)
Thu Mar 25, 2021 5:18 pm
Forum: Beginners
Topic: Excel functions to move
Replies: 5
Views: 109

Re: Excel functions to move

I see. So it's really just posting to cells? To move down, just add 1 to the row. You can do this in a loop This would post to cells A5,B5,C5,D5,E5 on the first cycle, then A6,B6,C6,D6,E7 on the seconds, and so on. Of course just to set one cell you'd need 1 line and not 5, but this is a good exampl...
by Dorian (MJT support)
Thu Mar 25, 2021 4:45 pm
Forum: Beginners
Topic: Excel functions to move
Replies: 5
Views: 109

Re: Excel functions to move

This blog post might help.
by Dorian (MJT support)
Thu Mar 25, 2021 10:53 am
Forum: Beginners
Topic: random
Replies: 1
Views: 43

Re: random

Random generates whole numbers, so if we generate a number between 10 and 22 then divide it by 100, we get what you're looking for. Then we can use it as a variable. I'm not too sure what you mean by a random click, but am guessing it's a random wait between clicks (because mouse movements need to b...
Sign up to our newsletter for free automation tips, tricks & discounts