iframe

Selenium之自动发送163邮件.py

孤街醉人 提交于 2020-01-25 00:43:07
版一: import timeimport datetimefrom selenium import webdriverfrom selenium.webdriver.support.wait import WebDriverWait # 等待页面加载某些元素from selenium.webdriver.support import expected_conditions as ECfrom selenium.webdriver.common.by import Byfrom getpass import getpassdef login(user, pwd): """ 登录163邮箱 """ # 由于可以扫码登录,而我们选择用户名和密码登录,所以,要点击 密码登录 time.sleep(1) wait.until(EC.presence_of_element_located((By.ID, 'switchAccountLogin'))).click() # 进入iframe,因为有多个iframe,所以获取的是数组,在分析页面后,数组0索引的iframe是登陆的iframe time.sleep(3) iframe = driver.find_elements_by_tag_name('iframe') # print(iframe) ''' [ <selenium

如何实现无刷新文字上传

ⅰ亾dé卋堺 提交于 2020-01-24 23:53:29
一、总结(点击显示或隐藏总结内容) 一句话总结:用的是普通的图片上传技术,只不过将跳转页面用iframe 放到了自己的体内并且隐藏了 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>index</title> 6 <script src="jquery.min.js"></script> 7 </head> 8 <body> 9 <h1> 10 <?php 11 echo "当前时间戳:".time(); 12 ?> 13 </h1> 14 <form action="upload.php" method="post" target="mywin" enctype="multipart/form-data"> 15 <p>文件上传</p> 16 <p> 17 <input type="file" name="img" id=""> 18 </p> 19 </form> 20 <div> 21 <img src="" id="imgid"> 22 </div> 23 <iframe name="mywin" frameborder="0" src="" style="display: none;"></iframe> 24 </body> 25 <script> 26 $(

视频标签object遮挡div

匆匆过客 提交于 2020-01-24 23:09:33
video 视频标签遮挡div 视频标签遮挡div 1.问题原因 在项目开发的过程中,用到播放视频,在IE下出现了div拖拽到控件时被object遮挡的问题。 从网上找了很多解决方案,最后都是归结为用iframe 遮挡 object,然后div在定位到iframe 上面。 但是出现播放视频的时候,iframe 还是无法覆盖到上。 后面查找windows media playe 属性,发现windowlessvideo属性 设置1就能实现div遮挡object 1:则设置成无窗口模式,视频可直接显示在你指定的区域,上面可以叠加文字或其他效果 0:显示完整的media player窗口 `<param name="windowlessVideo" value="1"/>` 来源: CSDN 作者: weixin_43839438 链接: https://blog.csdn.net/weixin_43839438/article/details/103896429

Multiple iframe tags Selenium webdriver

微笑、不失礼 提交于 2020-01-24 22:21:28
问题 I am trying to use selenium to send credit card info onto a site, and each element is contained in a separate iframe tag in the HTML. For example, the box to enter a credit card number is contained in the first iframe tag, and the card holder name is contained in the second iframe, and so on, and so forth. I am able to access the first iframe tag, and send the credit card number into the box, however I an unable to locate the cardholder name iframe tag, and thus cannot send the keys to enter

How to find a table using selenium and vba on webpage that uses iframes?

╄→гoц情女王★ 提交于 2020-01-24 22:14:50
问题 The below code worked up until a few days ago to go to the url, find the table and import the contents of the table into Excel. I then did some other formatting to get the table into the appropriate rows and columns. But now this code cannot locate the table. I do not fully understand the "Set a = .FindElementsByTag("iframe")(2)" and the ".SwitchToFrame 1". But my general understanding is that this portion of the code switches to a different frame which then extracts the internal url, which

How to send text with in the username field within an iframe using Selenium VBA

五迷三道 提交于 2020-01-24 20:39:04
问题 I am attempting to login in the linked website. It looks straightforward and I have done this successfully in other websites. I can login manually. My code is Dim bot As New WebDriver bot.Start "chrome", "https://mbwebedi.mahle.com" bot.Get "/webedi/jsp/index.jsp" bot.FindElementByName("Login").SendKeys "ABC123" I receive the error: "NoSuchElementError Element not found for Name=Login" The element's text is: <input class="loginInput" type="text" name="Login" maxlength="30">` I can proceed

[C#]Attribute特性(3)——AttributeUsage特性和特性标识符

孤街浪徒 提交于 2020-01-24 17:37:28
引言 在UML系列学习中的小插曲: 看过《大湿教我写.net通用权限框架(1)之菜单导航篇》之后发生的事 在上篇中只拿登录界面练练手,不把主界面抠出来,实在难受,严重的强迫症啊。之前一直在总结UML系列,也没把主要精力放在这上面,最近腾出了点时间,整理一下,一是学习,二是张张姿势。 晒图 微软高级php工程师 原图: LZ纯F12呕心后力作: 数据库设计 1 GO 2 3 /****** Object: Table [dbo].[TB_EventInfo] Script Date: 12/02/2013 20:57:44 ******/ 4 SET ANSI_NULLS ON 5 GO 6 7 SET QUOTED_IDENTIFIER ON 8 GO 9 10 SET ANSI_PADDING ON 11 GO 12 13 CREATE TABLE [dbo].[TB_EventInfo]( 14 [EventId] [varchar](50) NOT NULL, 15 [ParentId] [varchar](50) NOT NULL, 16 [Code] [varchar](50) NULL, 17 [FullName] [varchar](50) NOT NULL, 18 [Description] [varchar](50) NULL, 19 [Img] [varchar

Ajax Auto Complete Extender IE9 wrong display positon inside iframe

ぐ巨炮叔叔 提交于 2020-01-24 12:46:05
问题 Inside my project I am using the Ajax Auto Complete Extender v2.0.50727 and it works fine for all textboxes in IE8, Opera, and Chrome, but when it comes to IE9 inside iframes its display position is totally giving me headaches. Instead of appearing just below the textbox, it appears 100px below, like here. The CSS class I am using is: <asp:TextBox ID="txtAddCriteria" runat="server" MaxLength="100" Width="325px" CssClass="TextInput"></asp:TextBox> <ajaxToolkit:AutoCompleteExtender runat=

simple iframe is not displayed on github pages

早过忘川 提交于 2020-01-24 12:34:05
问题 I regularly embed iframes in my github.io pages but this one fails - I can't see why. The iframe : <iframe src="http://www.javarepl.com/embed.html" style="width: 500px; height: 130px; border: 0px"></iframe> Embedded at several places in this page - and not showing up : https://seinecle.github.io/codapps/generated-html/essential-notions-of-code.html (note: when loading the html page locally, the iframe does show up). 回答1: Check your browser console and you'll see the error: Mixed Content: The

Embedding Html page inside another Html page without using iFrames

不问归期 提交于 2020-01-24 12:26:07
问题 I ran into an issue where one of my customer's browser does not support iFrames (rather his Outlook does not). Without using iFrames, how can i display another page's content inside Html? Original iFrames insert looked as following: <iframe src="http://mybox:8081/blah/report.jsp" width="1000" height="420"> <p>Your browser does not support iframes.</p> </iframe> Please advise. Thank you. 回答1: You cannot without using an iFrame. Your options are even more limited because you're working with an