Search found 55 matches

by NickD
Wed Oct 14, 2020 2:26 pm
Forum: Technical / Scripting
Topic: Setting The Browser Binary With CHROMEDRIVER_OPTIONS
Replies: 2
Views: 55

Setting The Browser Binary With CHROMEDRIVER_OPTIONS

Marcus recently informed me that we can now set ChromeDriver to use a specific profile via: Let>CHROMEDRIVER_OPTIONS=--user-data-dir=/path/to/existing/profile I would really like to be able to control other chromium based drivers with Macro Scheduler. Does anyone know if it is possible to: a: Set a ...
by NickD
Tue Jul 28, 2020 3:07 pm
Forum: Beginners
Topic: Error [HTTP / 1.1 404 Not Found] in chromedriver
Replies: 10
Views: 3249

Re: Error [HTTP / 1.1 404 Not Found] in chromedriver

I had the same issue, in my case it was due to the fact that chrome browser had been updated to a newer version, therefore the version of ChromeDriver in my script folder was no longer compatible. Visit chrome://version/ in your browser to see your chrome version number, then visit https://chromedri...
by NickD
Fri Apr 10, 2020 1:44 pm
Forum: Technical / Scripting
Topic: ChromeDriver 404 on URL from Variable
Replies: 4
Views: 878

Re: ChromeDriver 404 on URL from Variable

Hi Marcus, I tried that first, then wrapped in percentage symbols, then with quotes to try and define the variable as a string. Every approach returned a 404 error modal. When I use: StringReplace>url,=,=,url StringReplace>url,?,?,url To encode the "?" and the "=" chars in the URLs, MSched...
by NickD
Thu Apr 09, 2020 3:52 pm
Forum: Technical / Scripting
Topic: ChromeDriver 404 on URL from Variable
Replies: 4
Views: 878

ChromeDriver 404 on URL from Variable

I am working on a script that logs into my work diary, and exports my schedule to a csv file that I can then upload to google calendar to make my schedule available on my android phone. Each event on my work diary has its own details page that I need to be able to scrape. My script successfully navi...
by NickD
Wed Apr 01, 2020 2:13 pm
Forum: Technical / Scripting
Topic: Dismissing Browser Alerts with ChromeDriver
Replies: 1
Views: 543

Dismissing Browser Alerts with ChromeDriver

Do we have any method of detecting and dismissing browser alert windows with ChromeDriver? I'm not sure where to start trying to detect an active Alert(). The alert locks the page when active so you can't use the inspector in dev tools, and does not exist in the dom as an element when not active, be...
by NickD
Tue Mar 10, 2020 2:47 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Still struggling with this... GoSub>ExecuteJS,session_id,document.body.innerHTML=\"<p>blah blah</p>\" Works almost as expected, although instead of replacing the entire page, it actually just replaces everything inside the page body tag. Here is my code, which uses regex to extract the body tag and ...
by NickD
Mon Mar 09, 2020 5:43 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Ahaa!

Thanks for the explanation Marcus :D
Did not realise I was overwriting everything, as the only divs I could target (with an id) were essentially wrapping the whole page anyway.
by NickD
Sun Mar 08, 2020 9:12 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Ran into a problem using the code injection SRT you posted due to targeting limitations. The Page I am trying to automate looks like this: <html> <head> </head> <body> <div id="wrap"> <div class="blah blah">...</div> <div class="blah blah">...</div> <div class="blah blah">...</div> <div class="my_ta...
by NickD
Sun Mar 08, 2020 6:39 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Thanks Marcus, I did not realise that.

Code: Select all

ChromeElementAction>session_id,chatbox_1,submit
Was not working for me, but:

Code: Select all

ChromeSetElementValue>session_id,chatbox_1,\uE006
Works fine :D

Does SetElementValue support the same keycodes as Selenium then?
by NickD
Sun Mar 08, 2020 1:47 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Thanks Marcus,

I edited my last post and added a suggestion for supporting scroll on targeted elements, see above.
(This will be useful for loading data in infinite scroll divs etc)
Will continue to add suggestions if I come across any more features that I think will be beneficial.
by NickD
Sun Mar 08, 2020 12:49 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Also is there a submit function we can use on form elements? eg: ChromeElementAction>session_id,formfield_1,submit or a sendkeys function: ChromeElementAction>session_id,formfield_1,send_keys(Keys.ENTER) A method of scrolling a specific element would also be very useful: ChromeFindElements>session_i...
by NickD
Sat Mar 07, 2020 7:13 am
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Re: Chrome Driver - Traverse Iframes & Insert HTML

Hi Marcus, Sorry for the late reply, been busy for the past few days. This is great! I have a couple of additional questions: • Is it possible to specify a chrome user profile on ChromeStart? (So I can launch a profile with pre-configured addons etc) • Is it possible to specify a specific Chrome bas...
by NickD
Mon Mar 02, 2020 11:22 pm
Forum: Enhancement Suggestions
Topic: Chrome Driver - Traverse Iframes & Insert HTML
Replies: 24
Views: 6191

Chrome Driver - Traverse Iframes & Insert HTML

If would be great if we could have a way of traversing Iframes with Chrome Driver. This is possible with Selenium (which uses ChromeDriver to control Chrome): driver.switchTo().frame("//iframe[@src='iframe.html']") Kantu, a chrome addon that runs a simplified version of Selenium uses the index metho...
by NickD
Sat Feb 22, 2020 6:08 pm
Forum: General Discussion
Topic: Sneak Peak of new functions..
Replies: 8
Views: 4064

Re: Sneak Peak of new functions..

Just want to thank everyone at MJTnet for this brilliant new version. Over the past few years more and more websites have stopped supporting for IE, and many current generation websites actively block IE users. I admit that this was something that has worried me due to Macro Schedulers lack of direc...
Sign up to our newsletter for free automation tips, tricks & discounts