Search found 58 matches

by NickD
Sat May 21, 2022 6:50 pm
Forum: Technical / Scripting
Topic: CHROMEDRIVER_OPTIONS Syntax
Replies: 5
Views: 4692

Re: CHROMEDRIVER_OPTIONS Syntax

Thanks Dorian, It's great to finally be able to use a defined and persistent chrome profile! I tried something very similar a while back, but got an error relating to unquoted JSON strings that I was unable to resolve, in reflection it obviously relates to the file path, rather than being an issue w...
by NickD
Tue Apr 19, 2022 4:14 am
Forum: Technical / Scripting
Topic: CHROMEDRIVER_OPTIONS Syntax
Replies: 5
Views: 4692

Re: CHROMEDRIVER_OPTIONS Syntax

Actually, user-data-dir= is a startup switch that tells chrome to open a specific user profile rather than the default blank profile. I spoke to Marcus about this switch back in October 2020 and was told: I think you mean CHROMEDRIVER_OPTIONS which is just for startup switches. So you could do: Let>...
by NickD
Mon Mar 08, 2021 4:51 pm
Forum: Technical / Scripting
Topic: Setting The Browser Binary With CHROMEDRIVER_OPTIONS
Replies: 4
Views: 2677

Re: Setting The Browser Binary With CHROMEDRIVER_OPTIONS

Hi Marcus, any progress with this?
by NickD
Wed Oct 14, 2020 2:26 pm
Forum: Technical / Scripting
Topic: Setting The Browser Binary With CHROMEDRIVER_OPTIONS
Replies: 4
Views: 2677

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: 9459

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: 3182

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: 3182

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: 1774

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: 30
Views: 46084

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: 30
Views: 46084

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: 30
Views: 46084

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: 30
Views: 46084

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: 30
Views: 46084

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: 30
Views: 46084

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...
Sign up to our newsletter for free automation tips, tricks & discounts