Signing into Tableau Server

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jogianni
Posts: 1
Joined: 24 May 2017, 10:13

Signing into Tableau Server

24 May 2017, 10:32

I am trying to create a script that signs into a tableau server (hosted on amazon EC2, but I believe tableau brings up the same sign in no matter where it is hosted). I followed the tutorial here:

https://jszapp.com/how-to-create-a-shor ... y-website/

Code: Select all

My_User_Name := "username"
My_Pass_Word := "hunter2"

web_browser := ComObjCreate("InternetExplorer.Application")

web_browser.Visible := true

web_browser.Navigate("www.xxxwebsite.com")

while web_browser.busy
	sleep 100

sleep 1000

username_input := web_browser.document.getElementById("username")

username_input.value := My_User_Name

password_input := web_browser.document.getElementById("password")

password_input.value := My_Pass_Word

web_browser.document.submit.click()

return
however it appears tableau server only defines the username and password fields by name etc and not id.

Code: Select all

<input type="text" min="" max="" match-data="" placeholder="Username" title="Username" ng-disabled="disabled" ng-required="required" ng-model="textValue" ng-model-options="options || {}" ng-keydown="keydown({$event: $event})" tb-enter="modelCtrl.$commitViewValue(); onEnter({$event: $event}); triggerEnter()" ng-paste="onPaste()" tb-auto-select="autoSelect" tb-focus="focus" tabindex="0" tb-test-id="textbox-username-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-trim="true" class="tb-text-box-input tb-enable-selection ng-not-empty ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched" name="username" required="required">
Is there another way to input information? I am also having trouble clicking the sign in button.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Decar, doodles333, mikeyww and 214 guests