Jul-27-2019, 03:23 AM
Thanks! Now the login works. However, a javascript popup commercial prevents me from getting the file with a simulated click:
Here's the javascript popup code, but I dont understand how to close the popup.
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>