单击WebBrowser控件vb.net中的按钮(Click button in WebBrowser control vb.net)
我想点击下图中突出显示的按钮。 代码来自网页:
我不确定,但我相信按钮是在iFrame中。
我努力了:
Dim wrapClick As HtmlElement = Contact.WebBrowser1.Document.GetElementById("Btn_WrapUp") wrapClick.InvokeMember("Click")
和:
Dim elPoint As New Point(704, 340) Dim wrapClick As HtmlElement = Contact.WebBrowser1.Document.GetElementFromPoint(elPoint) wrapClick.InvokeMember("onClick")
和:
Contact.WebBrowser1.Document.GetElementById("Btn_WrapUp").InvokeMember("Click")
在上面的所有内容中,我尝试过'onClick'和'Click'。
WebBrowser1采用不同的形式。
谢谢!
I am trying to click the button highlighted in picture below. The code is from a web page:
I'm not to sure, but I believe the button is within an iFrame.
I have tried:
Dim wrapClick As HtmlElement = Contact.WebBrowser1.Document.GetElementById("Btn_WrapUp") wrapClick.InvokeMember("Click")
And:
Dim elPoint As New Point(704, 340) Dim wrapClick As HtmlElement = Contact.WebBrowser1.Document.GetElementFromPoint(elPoint) wrapClick.InvokeMember("onClick")
And:
Contact.WebBrowser1.Document.GetElementById("Btn_WrapUp").InvokeMember("Click")
In all of the above, I have tried 'onClick' and 'Click'.
WebBrowser1 is on a different form.
Thanks!
原文:https://stackoverflow.com/questions/33526936
最满意答案
我认为,因为Gmail根据我的经验不支持外部或内联样式表,您只需要使用样式属性,不要使用内联或外部样式,并将所有样式放在样式属性中
例如:<div style ='border-width:0px; border-style:solid;“'>
i think that because Gmail don't support external or inline style sheet from my experience you need to use only the style attribute don't use inline or external styles, and put all your styles in the style attribute
e.g : <div style='border-width: 0px; border-style: solid;"'>
相关问答
更多-
GMail的SMTP需要加密。 使用: Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, "ssl"); GMail's SMTP requires encryption. Use: Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, "ssl");
-
$mail = new PHPMailer(); // create a new object $mail->IsSMTP(); // enable SMTP $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->SMTPSecure = 'ssl'; // secure transfer e ...
-
Gmail SMTP问题(Gmail SMTP issue)[2023-11-25]
您的托管服务提供商似乎在捕获出站SMTP请求并将其转发到他们自己的SMTP服务器。 您是否通过端口25连接到Google? 而应在端口587上连接SMTP提交端口 。 如果您已经使用587,并且您的托管服务提供商正在捕获此流量,那么请向他们发送一封非常令人讨厌的电子邮件,威胁要切换托管服务提供商,如果他们不立即干扰您的Web应用程序。 住宅拨号和DSL用户可以容忍这种类型的BS,但对于网络托管和共同定位来说,这完全不合适。 如果您的服务提供商已经准备好了,他们会道歉并根据条款和条件指出您的条款和条件,指出出 ... -
PHP邮件编码问题(PHP Mailer Coding Issue)[2022-01-19]
我将把我的评论作为答案,因为这是我能够提出的唯一结论,也是最有可能的,没有看到OP的HTML表单。 条件语句if(isset($_POST["Submit"]))基于名为Submit的提交按钮。 如果您的提交按钮name="submit"而不是name="Submit" ,那么这将解释它。 如果它没有命名,那么就做 。 即: 是不一样的在PHP邮件程序中发送多个邮件时的HTML转换问题(HTML conversion issue while sending multiple mails in php mailer)[2022-05-13]
这里有一些问题 - 你正在尝试做PHPMailer已经为你做的事情,并且可能会破坏它。 最明显的事情是设置ContentType - 只是不要这样做。 调用msghtml设置ishtml并设置altbody,所以你也不需要这样做。 我强烈建议您不要使用Base 64编码 - 使用quoted-printable编码。 不要在端口465上使用ssl。在端口587上使用tls。 这一切看起来都像是从一个旧例子开始的 - 你是从Github运行的最新版本吗? Several things wrong here - ...PHP Mailer&html中的间距问题仅在Gmail中发送(PHP Mailer & issue with spacing in html send out in Gmail only)[2022-12-26]
我认为,因为Gmail根据我的经验不支持外部或内联样式表,您只需要使用样式属性,不要使用内联或外部样式,并将所有样式放在样式属性中 例如:i think that because Gmail don't support external or inline style sheet from my experience you need to use only the style attribute d ...Mailer in Rails中的图像/ CSS不仅适用于Gmail(Image/CSS in Mailer in Rails is not applied only in Gmail)[2022-04-24]
我认为您需要将图片定义为邮件中的附件。 例如,我在app/mailers/customer_mailer.rb中有一个邮件app/mailers/customer_mailer.rb ,它有一个方法verification_confirmation 。 在这个方法中,我有以下几行: attachments.inline['logo.png'] = File.read(Rails.root.join("app/assets/images/logo.png")) 现在,在这个电子邮件的视图中(即app/view ...有一百万个理由说明为什么gmail会怀疑这封邮件是垃圾邮件。 我要做的第一件事是使用一个正确处理标题的库 - > http://swiftmailer.org/ 其次,确保您的发件人主机来自与服务器相同的IP并具有正确的MX记录。 Theres a million reasons why gmail would suspect the email is spam. The first thing I would do is use a library that deals with headers corr ...working through out the day i corrected the code by which i am able to send image mailer below is the code-: