Salesforce Login

Getting started -basics for starting with WinTask

Salesforce Login

Postby OldGeek on Wed Apr 08, 2015 11:56 am

I am new to WinTask. I'm trying to automate some steps on salesforce.com but I can seem to get past the login screen. I can't seem to locate the username field, I have no problem locating the password field and the Login Button. I used the Spy tool but it also could not find the field. I have attach a screen shot of IE using the "Inspect Element" feature. I also included the code for the login.

Any help would be great. Thank You

=================================
'StartBrowser("IE", "https://login.salesforce.com", 1)

UsePage("salesforce.com - Customer Secure Login Page")

#ActionTimeout= 5

' Click on icon on a person
ClickHTMLElement("IMG[SRC= 'https://login.salesforce.com/img/u']")
WriteHTML("INPUT TEXT[NAME= 'username']", "JohnDoe")

' Click on the icon of a lock
ClickHTMLElement("IMG[SRC= 'https://login.salesforce.com/img/loc']")
WriteHTML("INPUT Password[NAME= 'pw']", "SecretPassword")

' Click on the Log in area / button
'ClickHTMLElement("SPAN[OUTERTEXT= 'Log in to Salesforce']")
Attachments
salesforce.png
(176.05 KB) Downloaded 846 times
OldGeek
 
Posts: 1
Joined: Wed Apr 08, 2015 11:35 am
Location: Upstate, NY (USA)

Re: Salesforce Login

Postby TechSupport on Thu Apr 09, 2015 9:19 am

Hello,

INPUT EMAIL tag is not yet supported, it will be supported in version 5.2, our next version. Here is the trick in version 5.1 :
StartBrowser("IE", "https://login.salesforce.com", 1)

UsePage("salesforce.com - Customer Secure Login Page")
WriteHTML("INPUT Password[NAME= 'pw']", "SecretPassword")
UseWindow(focus$(),topinstance())
SendKeys("<Shift <Tab>>")
Pause 10 ticks
SendKeys("userid",Noactivate)

Best regards.
WinTask Tech Support
TechSupport
 
Posts: 805
Joined: Thu Nov 16, 2006 9:58 am


Return to Getting started

Who is online

Users browsing this forum: No registered users and 1 guest

cron