Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login to website
#3
Thanks! Now the login works. However, a javascript popup commercial prevents me from getting the file with a simulated click:

driver.find_element_by_link_text('The File').click()
Error message:

Quote:ElementClickInterceptedException: Element <a href="/data/filedownload.aspx?e=myfile.dat"> is not clickable at point (342.1000061035156,592) because another element <div id="cboxOverlay"> obscures it

Here's the javascript popup code, but I dont understand how to close the popup.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>

</title>

<link rel="stylesheet" href="../styles/popup.css" type="text/css" /></head>
<body>
	<form name="aspnetForm" method="post" action="./platinum.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="lKA6V5Ovaauh5Sv9Mzk7WQR1SbFsBnGo/sAgE2UzfWggOGxhSINv1ExdbN2YRs/0Bt70n3vHza06JiSSHpg6p2d4dGFbplZX1X+CD5N9eyo=" />
</div>

<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="F129DEA2" />
</div>
	<div>
		

	<div style="width:500px;height:335px;background-image:url('../images/er.png')">
		<div style="width:500px;background:#666;opacity:0.9;filter:alpha(opacity=90)">
			<div style="padding-top:10px;width:400px;text-align:right;color:#fff;font-size:26px;font-weight:bold;">
			UPGRADE TO PLATINUM
			</div>
			<div style="padding-bottom:10px;width:400px;text-align:right;color:#ddd;font-size:14px;font-weight:bold;">
			Our most popular subscription level
			</div>
		</div>

		<div style="width:240px;height:215px;background:#ccc;padding: 10px 10px;margin:0px;font-size:16px;font-weight:bold;opacity:0.8;filter:alpha(opacity=80)">
			<ul style="margin:0px;">
				<li>All</li>
				<li>None</li>
			</ul>
			<input type="submit" value="CLICK HERE" onclick="parent.window.location = '/products/default.aspx'" style="height:40px;font-weight:bold;font-size:18px;color:#fff;background:#369;margin-left:60px;cursor:pointer;opacity:1.0;" />
		</div>
		<div style="width:500px;background:#CBD9F3;opacity:0.9;filter:alpha(opacity=90)">
			<div style="padding:10px 0px 10px;width:500px;text-align:center;color:#369;font-size:26px;font-weight:bold;">
			HURRY UP!
			</div>
		</div>
	</div>


	</div>
	</form>
</body>
</html>
Reply


Messages In This Thread
Login to website - by kapibara - Jul-26-2019, 06:47 AM
RE: Login to website - by metulburr - Jul-26-2019, 10:50 AM
RE: Login to website - by kapibara - Jul-27-2019, 03:23 AM
RE: Login to website - by metulburr - Jul-27-2019, 11:20 AM
RE: Login to website - by kapibara - Jul-27-2019, 02:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Login and download an exported csv file within a ribbon/button in a website Alekhya 0 2,724 Feb-26-2021, 04:15 PM
Last Post: Alekhya
  Get element (ID) from website to login Olimpiarob 4 4,370 Jul-28-2020, 01:20 PM
Last Post: Martinelli
  Python Webscraping with a Login Website warriordazza 0 2,656 Jun-07-2020, 07:04 AM
Last Post: warriordazza
  using webbot for website login fails loeten 2 6,481 Jan-03-2019, 07:31 AM
Last Post: loeten
  Login and access website mariolopes 7 9,343 Feb-07-2018, 09:47 AM
Last Post: mariolopes
  Using python requests module and BS4 to login on an Wordpress based website apollo 1 9,497 Feb-06-2018, 01:31 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020