Изменения документа GeckoFX
Редактировал(а) Alexandr Fokin 2022/12/08 08:35
<
>
отредактировано Alexandr Fokin
на 2021/08/12 12:06
на 2021/08/12 12:06
отредактировано Alexandr Fokin
на 2022/12/08 08:34
на 2022/12/08 08:34
Изменить комментарий:
Удаленный объект
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (0 изменено, 0 добавлено, 1 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -1,34 +1,8 @@ 1 -{{code language="c#"}} 1 +GeckoFX 2 +[[https:~~/~~/www.nuget.org/packages/GeckoFX/>>url:https://www.nuget.org/packages/GeckoFX/]] 2 2 3 -// Change html attribute 4 - var usernameInput = geckoWebBrowser1.Document.GetElementById("j_username"); 5 - usernameInput.SetAttribute("value", "abc"); 4 +---- 6 6 6 +{{children/}} 7 7 8 -// ButtonClick 9 - var buttonElement = geckoWebBrowser1.Document.GetElementById("button"); 10 - new GeckoButtonElement(buttonElement.DOMElement).Click(); 11 - 12 - 13 -// FormSubmit 14 - var form = geckoWebBrowser1.Document.GetElementById("loginForm"); 15 - (form as GeckoFormElement).submit(); 16 - 17 - 18 -// Execute JS 19 - using (AutoJSContext context = new AutoJSContext(geckoWebBrowser1.Window)) 20 - { 21 - var result1 = context.EvaluateScript( 22 - "(() => { return 2; })()", 23 - (nsISupports)geckoWebBrowser1.Window.DomWindow, 24 - out res 25 - ); 26 - 27 - var result2 = context.EvaluateScript( 28 - "document.getElementById('loginForm').submit()", 29 - (nsISupports)geckoWebBrowser1.Window.DomWindow, 30 - out res 31 - ); 32 - } 33 - 34 -{{/code}} 8 +
- XWiki.XWikiComments[1]
-
- Автор
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.cccc1808 - Комментарий
-
... ... @@ -1,8 +1,0 @@ 1 -geckofx button click 2 -https://stackoverflow.com/questions/15005216/geckofx-button-click 3 - 4 -Submit web form on a GeckoWebBrowser? (GeckoFX) 5 -https://stackoverflow.com/questions/20755971/submit-web-form-on-a-geckowebbrowser-geckofx 6 - 7 -Gecko 45 c# winform add script to document 8 -https://stackoverflow.com/questions/34993941/gecko-45-c-sharp-winform-add-script-to-document - Дата
-
... ... @@ -1,1 +1,0 @@ 1 -2021-08-12 12:00:38.737