Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have tried to input my user name at this site using Selenium. The name input works OK. My application ends with name input. I manually click the Continue button. The password entry box should appear. Instead, I notice that something went wrong. I presume that the web page somehow detects that a real person is not inputting. Is there a way around this?

What I have tried:

I don't know to try anything more.
Posted
Updated 13-Sep-23 4:13am
v2

It's not working because the email address input box is part of the original page you downloaded. The password box doesn't exist until you enter an email address and click the continue button.

The problem is that password box is in a partial HTML page that is downloaded BY THE EXECUTION OF JAVASCRIPT on the original page. Selenium isn't executing the javascript so you never get the password HTML.

Google for "Selenium execute javascript" to see if there's something you can use.
 
Share this answer
 
Comments
BobbyStrain 1-Sep-23 19:51pm    
Thank you, Dave. I'll see if I can fix it. I don't understand why CVS.com won't use the address and password that are stored in Firefox.
Dave Kreskowiak 2-Sep-23 10:36am    
Because the problem isn't CVS.com, it's the code in the browser that fills in the details. The password box isn't following any kind of "standard" that browser can use to find the password box, like it doesn't exist at all!
BobbyStrain 2-Sep-23 10:59am    
Thank you. So when I fix the javascript execution will it work?
Dave Kreskowiak 2-Sep-23 11:26am    
This is where you try, experiment, diagnose, make changes, ... and find out.
No there is no way round it. Websites control what you can and cannot do with their web pages.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900