Document.getElementById()不适用于Visual Studio中的ChromiumWebBrowser

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