Document.getElementById()不适用于Visual Studio中的ChromiumWebBrowser [英] Document.getElementById() not available for ChromiumWebBrowser in visual studio

查看:865
本文介绍了Document.getElementById()不适用于Visual Studio中的ChromiumWebBrowser的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开浏览器时,

WebBrowser browser1;

我可以致电

I am able to call

browser1.Document.getElementById();

但是当我加载浏览器为

but when I load the browser as

CromiumWebBrowser browser1;

它表示CefSharp.WinForms.ChromiumWebBrowser不包含文档定义。

it says "CefSharp.WinForms.ChromiumWebBrowser does not contain a definition for document".

我在Chromium浏览器中加载了一个Google表单。我只是想在第一个单元格中输入something。

I have loaded a google sheet on a Chromium browser. I simply want to enter "something" on the first cell.

任何人都可以帮忙吗?

Can anyone help?

推荐答案

在完成以一种形式加载两个浏览器之后中,我只需将该值复制并粘贴到第二个浏览器的重点区域即可。这是我能做的最好的。

After working out to load two browsers in one form in this Q&A, I just had to copy the value and paste it to the focused area on the second browser. That's the best I could do.

Clipboard.SetDataObject((value).ToString(), true);
browser2.Paste();

但现在我需要解决另一件事了。
我需要选择谷歌表格中的下一个单元格。我创建了
这个问题

but now I need to solve another thing. I need to select the next cell on a google sheet. And I have created this Question

这篇关于Document.getElementById()不适用于Visual Studio中的ChromiumWebBrowser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆