Jump to content

Chrome UDF


seangriffin
 Share

Recommended Posts

  • 1 month later...
  • 2 months later...

So i just want to open "https://www.youtube.com/my_live_events" and create a new event.
my code so far..

It didnt click on the Button "new Lifestream".

Any Solutions?

Quote

#Include <Array.au3>
#Include <Chrome.au3>


_ChromeStartup("https://www.youtube.com/my_live_events")

_ChromeDocWaitForReadyStateCompleted(5)
_ChromeInputClickByName("new-events-btn")

 

Link to comment
Share on other sites

I haven't worked with the Chrome UDF myself but I see that your code doesn't have any error checking.
Make sure, that none of the _Chrome* functions returns an error before calling the next one.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • 2 weeks later...

Why do you think the Chrome UDF should work the same way as the IE UDF does?
This are two different programs coded by different companies.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Developers
4 minutes ago, boy233 said:

I'm trying to say that UDF Chrome does not work 100%!

That must be because your line 15 is the wrong syntax! ;)

Seriously: Not sure what kind of answer you did expect but what about explaining what you are trying to do, show your code and tell us what isn't working?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

24 minutes ago, Jos said:

That must be because your line 15 is the wrong syntax! ;)

Seriously: Not sure what kind of answer you did expect but what about explaining what you are trying to do, show your code and tell us what isn't working?

Jos

That's not the problem!

_ChromeShutdown()
_ChromeStartup("http://www.google.com")
_ChromeDocWaitForExistenceByTitle("Google", 10)
_ChromeObjSetValueByName("f", "Auto IT")


Does not display error and does not work!

Link to comment
Share on other sites

  • Developers

So have you followed the whole process described in the initial post?
If so, post a simple test script that you test with and isn't working.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

1 hour ago, Jos said:

So have you followed the whole process described in the initial post?
If so, post a simple test script that you test with and isn't working.

Jos

 Follow....

#include <Chrome.au3>

;~ _ChromeShutdown()
_ChromeStartup("http://www.google.com")
_ChromeDocWaitForExistenceByTitle("Google", 10)
_ChromeObjSetValueByName("f", "Auto IT")

Does not work! What am I doing wrong?

Link to comment
Share on other sites

On 7/4/2017 at 8:24 PM, boy233 said:

I'm trying to say that UDF Chrome does not work 100%!
Is there any similar I can use?

I Was working on chromedriver.exe made a new udf 

you can try and let me know errors will try to solve it

link to udf goes here

 

Link to comment
Share on other sites

  • 4 weeks later...

Greetings Sean !!!

1: Great UDF :) ( Chrome Version 49.0.2623.112 m, OS: W2k3 ) Beyond this version Chrome wouldn't be updated due to W2k3.

Now for the Core Issue:
 

_ChromeEval("document.getElementsByClassName('input-search')")
Output : {"text":"object"}

It seems the extension will have to be modified. Any other ideas ?

Regards

DR

Link to comment
Share on other sites

Hello there, 

I have installed everything correctly while installing I faced a problem that Chrome use to disable the plugin automatically because it was not downloaded from chrome store. I solved that issue. Now, whatever script I write or the above examples "Chrome_example.au3" are not working. It just opens the chrome window and reaches to the URL. No other actions are performed. Can anyone tell me why is this so...? 

Link to comment
Share on other sites

  • 2 months later...

How do I get the AutoIt Chrome Extension to enable itself?  By default, Chrome disables anything not downloaded from the Store.  As soon as I click on the "Allow access to file URL's" checkbox it disables itself and says it's not from the Chrome Web Store.

Edited by BigKev
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
On 8/1/2017 at 2:01 AM, DeltaRocked said:

Greetings Sean !!!

1: Great UDF :) ( Chrome Version 49.0.2623.112 m, OS: W2k3 ) Beyond this version Chrome wouldn't be updated due to W2k3.

Now for the Core Issue:
 

_ChromeEval("document.getElementsByClassName('input-search')")
Output : {"text":"object"}

It seems the extension will have to be modified. Any other ideas ?

Regards

DR

Not sure what you are trying to actually do, but it is returning what I would expect as this is what javascript would give you in this instance.

Link to comment
Share on other sites

On 12/8/2017 at 5:40 AM, billyzhao said:

How can i get page source of a url ?

You basically need to learn javascript, but something like this I think is what you need  

$returnval = _ChromeEval("document.documentElement.innerHTML", 5)

 

Link to comment
Share on other sites

Hi all, I am not sure of something and I am a little new to AutoIT3 so I don't know if this is an AutoIT thing or something changed with Chrome.

All of the samples will run code similar to  
 

_ChromeDocWaitForExistenceByTitle("Google", 10)

When running and coding things I noticed the code was all taking 10 second every time, so after playing around I realized that I need to code it like this for it to work properly

_ChromeDocWaitForExistenceByTitle("{""text"":""Google""}", 10)

This is due to how the data is returned.  So is this a bug or a feature?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...