• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script help for filling in Chrome credentials dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script help for filling in Chrome credentials dialog


  • Subject: Re: Script help for filling in Chrome credentials dialog
  • From: David Gregg <email@hidden>
  • Date: Fri, 17 Feb 2017 14:53:56 -0700

Dan,

Maybe with Javascript...

tell application "Google Chrome"
	set newTab to make new tab of window 1
	execute newTab javascript "document.location.href='https://somewebpage.com';"
end tell

You will have to add in the appropriate Javascript to fill in the two text fields and trigger the sending of the form.
Just extend the string with each of the other Javascript commands, separating each of the commands with a semi-colon.

David

> On Feb 17, 2017, at 1:21 PM, Ball, Dan <email@hidden> wrote:
>
> Can someone help with this?  Trying to launch a webpage in kiosk mode using Chrome that needs authentication and trying to script it, but it won’t fill in the credentials when the dialog pops up in Chrome.
>
> delay 4
> tell application "Finder"
>                activate
>                do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --kiosk https://somewebpage.com<https://somewebpage.com/>"
> end tell
> tell application "Google Chrome"      (Also tried here System Events, Google Chrome Helper or System Events to tell process “Google Chrome”)
>                activate
>                delay 0.3
>                keystroke "username"
>                keystroke tab
>                keystroke "password"
>                keystroke return
> end tell
>
>
> Thanks,
>
> Dan
>
>
>
>
>
> This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Script help for filling in Chrome credentials dialog (From: "Ball, Dan" <email@hidden>)

  • Prev by Date: Re: Script help for filling in Chrome credentials dialog
  • Next by Date: Re: Apple Mail – Counting Unread Emails with System Events
  • Previous by thread: Re: Script help for filling in Chrome credentials dialog
  • Next by thread: Re: Script help for filling in Chrome credentials dialog
  • Index(es):
    • Date
    • Thread