Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have something strange happenings in my code.
I need to login to my google account but if I set up custom useragent the google signin page did not parse in the fields user email and pass.
If I let useragent by default gecko 45 then it work.
But i dont like to google see I try to do some tasks using my program so why it doesnt accept useragent? I tried like 10 nothing work.
PLEASE do not tell me to use sellenium or other browser as my code is already 5000 lines of code and I dont have head for that to change it.
thx

What I have tried:

GeckoPreferences.User["general.useragent.override"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36";//randomUser;
GeckoPreferences.User["javascript.enabled"] = true;
GeckoPreferences.User["plugin.state.flash"] = 1;
Posted
Comments
MadMyche 20-Feb-20 11:06am    
What happens if you try a "known" user-agent?
[no name] 20-Feb-20 12:05pm    
"known"? I tried most recent useragent or chrome, firefox and also linux.
It just doesnt execute the click inside the email or pass field :(

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