Jump to content
mikes99

Click on embedded button link in Chrome

Recommended Posts

mikes99

I need to know how I can click on a button/link that is embedded into a webpage which opens up a link for a downloaded app on my PC.  Below is the code from the webpage for the button I need to click on.  

<a id="navLink" class="link" data-href-alt="./dist/portal/composerlaunchpad.exe" href="clp://launchurl=https://acmhsraiisa1mpls.noblehosted.com/NobleWebAgent11.1.3.4/Default.aspx" style="margin: 0 auto;">Click Here To Begin</a>

image.png.8f6295d96b17cecc5d2720bec7fce761.png

 

When you click on the link this box will appear, then i can script something to click on that.  

image.png.e0adb0192d81dbcce54074d223b88bd9.png

 

This is the code from AutoIt for the area where that button "click here to begin" is.  

>>>> Window <<<<
Title:    Noble Composer (Portal Install) - Google Chrome
Class:    Chrome_WidgetWin_1
Position:    10, 10
Size:    1339, 937
Style:    0x16CF0000
ExStyle:    0x00000100
Handle:    0x001503A6

>>>> Control <<<<
Class:    Chrome_RenderWidgetHostHWND
Instance:    2
ClassnameNN:    Chrome_RenderWidgetHostHWND2
Name:    
Advanced (Class):    [CLASS:Chrome_RenderWidgetHostHWND; INSTANCE:2]
ID:    260414112
Text:    Chrome Legacy Window
Position:    5, 81
Size:    1329, 851
ControlClick Coords:    381, 501
Style:    0x56300000
ExStyle:    0x00000020
Handle:    0x00140022

>>>> Mouse <<<<
Position:    396, 592
Cursor ID:    0
Color:    0x84CFEF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Chrome Legacy Window
Chrome Legacy Window


>>>> Hidden Text <<<<
 

 

Any suggestions?

Thanks!

Share this post


Link to post
Share on other sites
Jos

@mikes99,
Moved to the appropriate forum, as the DEV forum very clearly states:

{Do not create AutoIt-related topics here, use AutoIt General Help and Support}

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Earthshine

Chrome UDF or IUIAutomation, FAQ 31

also Webdriver stuff posted on this forum

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Earthshine

Give that a try first 


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
mikes99

I need to know how I can click on a button/link that is embedded into a webpage which opens up a link for a downloaded app on my PC.  I'm a newbie on Autoit so I'm still figuring things out here.  I have tried the Chrome UDF, however newer versions of Chrome reject the file since it is not from the Chrome store, so I can't go that route.    Below is the code from the webpage for the button I need to click on.  

<a id="navLink" class="link" data-href-alt="./dist/portal/composerlaunchpad.exe" href="clp://launchurl=https://acmhsraiisa1mpls.noblehosted.com/NobleWebAgent11.1.3.4/Default.aspx" style="margin: 0 auto;">Click Here To Begin</a>

image.png.8f6295d96b17cecc5d2720bec7fce761.png

 

When you click on the link this box will appear, then i can script something to click on that.  

image.png.e0adb0192d81dbcce54074d223b88bd9.png

 

This is the code from AutoIt for the area where that button "click here to begin" is.  

>>>> Window <<<<
Title:    Noble Composer (Portal Install) - Google Chrome
Class:    Chrome_WidgetWin_1
Position:    10, 10
Size:    1339, 937
Style:    0x16CF0000
ExStyle:    0x00000100
Handle:    0x001503A6

>>>> Control <<<<
Class:    Chrome_RenderWidgetHostHWND
Instance:    2
ClassnameNN:    Chrome_RenderWidgetHostHWND2
Name:    
Advanced (Class):    [CLASS:Chrome_RenderWidgetHostHWND; INSTANCE:2]
ID:    260414112
Text:    Chrome Legacy Window
Position:    5, 81
Size:    1329, 851
ControlClick Coords:    381, 501
Style:    0x56300000
ExStyle:    0x00000020
Handle:    0x00140022

>>>> Mouse <<<<
Position:    396, 592
Cursor ID:    0
Color:    0x84CFEF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Chrome Legacy Window
Chrome Legacy Window


>>>> Hidden Text <<<<
 

 

Any suggestions?

Thanks!

 

Share this post


Link to post
Share on other sites
Earthshine

See FAQ 31, IUIAutomation post, also check out the WebDriver UDF posted in these forums

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites
Earthshine

lol, so i answered the same way twice. I am consistent... lol looks like the OP doesn't want to do the work necessary to complete his goals by ignoring my answers completely and starting a new thread, hoping for different answers... hahahaha

OP, here are your choices again, although you may not like it

WebDriver UDF

Chrome UDF

IUIAutomation (this and webdriver are my favorite now)

Goodbye and happy programming.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.