New Google sign-in page with YouTube

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

New Google sign-in page with YouTube

by Radiantre on Sat May 06, 2017 3:32 pm

I am trying to automate Google's new sign-in page with YouTube:

Code: Select all
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
URL GOTO=https://www.youtube.com/feed/subscriptions?flow=1
TAG POS=1 TYPE=INPUT:EMAIL FORM=NAME:NoFormName ATTR=ID:identifierId CONTENT=
TAG POS=1 TYPE=SPAN ATTR=TXT:Next
SET !ENCRYPTION STOREDKEY
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/signin/v2/challenge/password/empty ATTR=NAME:password CONTENT=
TAG POS=1 TYPE=DIV ATTR=CLASS:ZFr60d<SP>CeoRYc&&TXT:


  1. On the last line, how can I identify the second "Next" button consistently given that the class name varies?
  2. Google sets a PersistentCookie for which there is no longer a checkbox to control; how can I set it to 0?
Radiantre
 
Posts: 5
Joined: Sat May 11, 2013 11:47 pm

Re: New Google sign-in page with YouTube

by rajeshjsl on Mon May 15, 2017 10:49 am

Radiantre wrote:I am trying to automate Google's new sign-in page with YouTube:

Code: Select all
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
URL GOTO=https://www.youtube.com/feed/subscriptions?flow=1
TAG POS=1 TYPE=INPUT:EMAIL FORM=NAME:NoFormName ATTR=ID:identifierId CONTENT=
TAG POS=1 TYPE=SPAN ATTR=TXT:Next
SET !ENCRYPTION STOREDKEY
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/signin/v2/challenge/password/empty ATTR=NAME:password CONTENT=
TAG POS=1 TYPE=DIV ATTR=CLASS:ZFr60d<SP>CeoRYc&&TXT:


  1. On the last line, how can I identify the second "Next" button consistently given that the class name varies?
  2. Google sets a PersistentCookie for which there is no longer a checkbox to control; how can I set it to 0?


You can directly use the identifier !

The id is "passwordNext" . It doesn't change.
rajeshjsl
 
Posts: 3
Joined: Mon May 15, 2017 10:45 am

Re: New Google sign-in page with YouTube

by Radiantre on Mon May 15, 2017 11:25 pm

rajeshjsl wrote:You can directly use the identifier !

The id is "passwordNext" . It doesn't change.


I changed the last line to:
Code: Select all
TAG POS=1 TYPE=DIV ATTR=ID:passwordNext

but when I run the script I get a 400 error, and have to browse back one page to the desired URL. What am I doing wrong?

Is there any way to control PersistentCookie?
Radiantre
 
Posts: 5
Joined: Sat May 11, 2013 11:47 pm

Re: New Google sign-in page with YouTube

by rajeshjsl on Tue May 16, 2017 12:31 am

Radiantre wrote:
rajeshjsl wrote:You can directly use the identifier !

The id is "passwordNext" . It doesn't change.


I changed the last line to:
Code: Select all
TAG POS=1 TYPE=DIV ATTR=ID:passwordNext

but when I run the script I get a 400 error, and have to browse back one page to the desired URL. What am I doing wrong?

Is there any way to control PersistentCookie?


Can you try both of these below and let me know.

For the email part next button
Code: Select all
TAG POS=1 TYPE=SPAN ATTR=TXT:Next


For the password part next button
Code: Select all
TAG POS=1 TYPE=CONTENT ATTR=TXT:Next




Here's my working code.
Code: Select all
VERSION BUILD=9030808 RECORDER=FX
TAB T=1

URL GOTO=https://www.youtube.com/feed/subscriptions?flow=1
TAG POS=1 TYPE=INPUT:EMAIL FORM=NAME:NoFormName ATTR=ID:identifierId CONTENT=xxxxxxxxxx@gmail.com
WAIT SECONDS = 5
TAG POS=1 TYPE=SPAN ATTR=TXT:Next
SET !ENCRYPTION NO
WAIT SECONDS = 5
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:/signin/v2/challenge/password/empty ATTR=NAME:password CONTENT=xxxxxxxxxx
TAG POS=1 TYPE=CONTENT ATTR=TXT:Next
WAIT SECONDS = 5
rajeshjsl
 
Posts: 3
Joined: Mon May 15, 2017 10:45 am

Re: New Google sign-in page with YouTube

by Radiantre on Tue May 16, 2017 11:15 pm

rajeshjsl wrote:For the password part next button
Code: Select all
TAG POS=1 TYPE=CONTENT ATTR=TXT:Next


Thank you; the wait after the first button helps, too. Do you have any thoughts about how to control PersistentCookie?
Radiantre
 
Posts: 5
Joined: Sat May 11, 2013 11:47 pm

Re: New Google sign-in page with YouTube

by rajeshjsl on Wed May 24, 2017 7:29 am

Radiantre wrote:
rajeshjsl wrote:For the password part next button
Code: Select all
TAG POS=1 TYPE=CONTENT ATTR=TXT:Next


Thank you; the wait after the first button helps, too. Do you have any thoughts about how to control PersistentCookie?


Can I know which exact persistent cookie are you referring to ?
rajeshjsl
 
Posts: 3
Joined: Mon May 15, 2017 10:45 am

Re: New Google sign-in page with YouTube

by Radiantre on Thu May 25, 2017 10:11 am

rajeshjsl wrote:Can I know which exact persistent cookie are you referring to ?


The cookie is literally named PersistentCookie. It used to be controlled by a checkbox that I could uncheck, but is now set in the sign in page's source code:
Code: Select all
_.qr(c,"PersistentCookie","1")
Radiantre
 
Posts: 5
Joined: Sat May 11, 2013 11:47 pm


Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot] and 9 guests

cron

Website Monitoring