Jump to content

Click on embedded button link in Chrome


Recommended Posts

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!

Link to comment
Share on other sites

  • Developers

@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

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

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!

 
Link to comment
Share on other sites

  • Developers

@mikes99,

Why are you creating a second thread on the same topic? Please stick to one!

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

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

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...