Issues with Login Automation -- "Access Denied"

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with Login Automation -- "Access Denied"

tommy c
Hello all,

I have been google'in and searching here for my specific/general selenium log in issues. Can't find much on my issue.

Problem that I am having is regarding login automation @ https://www.costco.com/Logon.

Error message:

Access Denied

You don't have permission to access "http://www.costco.com/Logon" on this server.


Is it timing issues? I tried delaying with different times and also automated random search activities before trying to login. 

Please advise.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b9bfede6-639d-45fc-9569-15175ebc6b04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Login Automation -- "Access Denied"

Kyle McGonagle
Hi Tommy,

Hard to say what could be a cause without knowing more...
Could you post some additional details, like the browser your using, selenium / driver versions, etc.?
And if possible, could you also post the script your trying to execute?

Kyle

On Tuesday, July 3, 2018 at 10:25:36 PM UTC-4, tommy c wrote:
Hello all,

I have been google'in and searching here for my specific/general selenium log in issues. Can't find much on my issue.

Problem that I am having is regarding login automation @ <a href="https://www.costco.com/Logon" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;">https://www.costco.com/Logon.

Error message:

Access Denied

You don't have permission to access "<a href="http://www.costco.com/Logon" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsYqEBzNRbADnGqEEGa5785qw_cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsYqEBzNRbADnGqEEGa5785qw_cQ&#39;;return true;">http://www.costco.com/Logon" on this server.


Is it timing issues? I tried delaying with different times and also automated random search activities before trying to login. 

Please advise.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0dc442da-8657-4931-a76e-387add489695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Login Automation -- "Access Denied"

Todd Bradley
That’s the same error I get when I visit that URL interactively. So it seems your Selenium script is doing the right thing. Were you expecting some other behavior? Notice that the web server behaves different if you leave off the training slash. 


is not the same as 


On Thu, Jul 5, 2018 at 9:54 PM Kyle McGonagle <[hidden email]> wrote:
Hi Tommy,

Hard to say what could be a cause without knowing more...
Could you post some additional details, like the browser your using, selenium / driver versions, etc.?
And if possible, could you also post the script your trying to execute?

Kyle

On Tuesday, July 3, 2018 at 10:25:36 PM UTC-4, tommy c wrote:
Hello all,

I have been google'in and searching here for my specific/general selenium log in issues. Can't find much on my issue.

Problem that I am having is regarding login automation @ https://www.costco.com/Logon.

Error message:

Access Denied

You don't have permission to access "http://www.costco.com/Logon" on this server.


Is it timing issues? I tried delaying with different times and also automated random search activities before trying to login. 

Please advise.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0dc442da-8657-4931-a76e-387add489695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAFKagWHObyenzGCB-GF5bu1C5kYBct-f_jkNyg1at%2B4Pv-%3DvVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Login Automation -- "Access Denied"

tommy c
In reply to this post by Kyle McGonagle
Hey Kyle,

Thanks for the response.

This is what I am using:
Windows 10:   64bit
PyCharm:        2018.1.4 (community V)
chrome driver: 2.4.0
chrome:           67.0.3396.99
Selenium:        3.13.0
pip:                  9.0.3


Snippet of code:

from selenium import webdriver
import time

from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.common.keys import Keys

# instantiate chrome driver
driver = webdriver.Chrome("C:\Users\SHP\PycharmProjects\FirstSeleniumTest\drivers\chromedriver.exe")

driver.set_page_load_timeout("10")
driver.get("https://www.costco.com/LogonForm")
time.sleep(3)
driver.find_element_by_id("logonId").send_keys("[hidden email]")
time.sleep(3)
driver.find_element_by_name("logonPassword").send_keys("password_1")
time.sleep(2)
driver.find_element_by_class_name("primary").click()


Thanks,
Tommy

On Thursday, July 5, 2018 at 11:54:26 PM UTC-4, Kyle McGonagle wrote:
Hi Tommy,

Hard to say what could be a cause without knowing more...
Could you post some additional details, like the browser your using, selenium / driver versions, etc.?
And if possible, could you also post the script your trying to execute?

Kyle

On Tuesday, July 3, 2018 at 10:25:36 PM UTC-4, tommy c wrote:
Hello all,

I have been google'in and searching here for my specific/general selenium log in issues. Can't find much on my issue.

Problem that I am having is regarding login automation @ <a href="https://www.costco.com/Logon" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;">https://www.costco.com/Logon.

Error message:

Access Denied

You don't have permission to access "<a href="http://www.costco.com/Logon" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsYqEBzNRbADnGqEEGa5785qw_cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsYqEBzNRbADnGqEEGa5785qw_cQ&#39;;return true;">http://www.costco.com/Logon" on this server.


Is it timing issues? I tried delaying with different times and also automated random search activities before trying to login. 

Please advise.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/40b1088f-a1c9-492f-8e7e-55ccfed9707f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Issues with Login Automation -- "Access Denied"

tommy c
In reply to this post by Todd Bradley
Hi Todd,

Thanks for the reply.

That is a different error. "Sorry we are unable to process your request".

I am able to get to the login form and able to automate the fill. Just the automation of the click fails the whole login process.

What works is that if it automates the fill, but I click "Sign In" manually.


-Tommy

On Friday, July 6, 2018 at 12:17:30 AM UTC-4, Todd Bradley wrote:
That’s the same error I get when I visit that URL interactively. So it seems your Selenium script is doing the right thing. Were you expecting some other behavior? Notice that the web server behaves different if you leave off the training slash. 

<a href="https://www.costco.com/Logon" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;">https://www.costco.com/Logon

is not the same as 

<a href="https://www.costco.com/Logon/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGDLWOuTrgDv6bVyxbPiKXfVPgxOA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGDLWOuTrgDv6bVyxbPiKXfVPgxOA&#39;;return true;">https://www.costco.com/Logon/


Todd.



On Thu, Jul 5, 2018 at 9:54 PM Kyle McGonagle <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="0eCMuGN-AQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">kmc...@...> wrote:
Hi Tommy,

Hard to say what could be a cause without knowing more...
Could you post some additional details, like the browser your using, selenium / driver versions, etc.?
And if possible, could you also post the script your trying to execute?

Kyle

On Tuesday, July 3, 2018 at 10:25:36 PM UTC-4, tommy c wrote:
Hello all,

I have been google'in and searching here for my specific/general selenium log in issues. Can't find much on my issue.

Problem that I am having is regarding login automation @ <a href="https://www.costco.com/Logon" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAX49fEPox_qbW9v8BK0Ywztl6WQ&#39;;return true;">https://www.costco.com/Logon.

Error message:

Access Denied

You don't have permission to access "<a href="http://www.costco.com/Logon" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsYqEBzNRbADnGqEEGa5785qw_cQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.costco.com%2FLogon\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGsYqEBzNRbADnGqEEGa5785qw_cQ&#39;;return true;">http://www.costco.com/Logon" on this server.


Is it timing issues? I tried delaying with different times and also automated random search activities before trying to login. 

Please advise.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="0eCMuGN-AQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">selenium-user...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="0eCMuGN-AQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">seleniu...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/selenium-users/0dc442da-8657-4931-a76e-387add489695%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/0dc442da-8657-4931-a76e-387add489695%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/selenium-users/0dc442da-8657-4931-a76e-387add489695%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/selenium-users/0dc442da-8657-4931-a76e-387add489695%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
--
Sent from Gmail Mobile

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e91cfe10-69c2-4989-940e-fcd1640cc8b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.