Discussion:
[chromium-discuss] to change combobox value in html form with delphi
Duarte
2018-09-09 21:35:28 UTC
Permalink
Good evening, I'm doing a project where the application fills in the HTML
form data. I am developing in delphi to fill input type fields I am using
the following command:

Chromium1.Browser.MainFrame.ExecuteJavaScript ('document.getElementById ('
+ QuotedStr ('pidlInput_accountHolderName') + '). Value = "' + name + '";',
Chromium1.Browser.MainFrame.Url, 0);

would it have some other simpler way? another question and how to change
the value of a combobox already tried to pass the value by the value
property more did not work. Can anyone help me with how can I pass the
manual value to the combobox using Chromium and delphi?
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
PhistucK
2018-09-10 08:06:13 UTC
Permalink
I guess you are using some library that allows you to execute JavaScript in
the browser, because this is generally not something that is possible in
Chrome/Chromium without remote debugging.
If you are using some library that relies on remote debugging, then there
might be a setValue method, but you have to get the element first, kind of
like you did using ExecuteJavaScript, only in a more native object oriented
way (less strings).

Anyway, please, use stackoverflow.com for questions regarding
ExecuteJavaScript, as you are simply asking "how do I do X in JavaScript".

☆*PhistucK*
Post by Duarte
Good evening, I'm doing a project where the application fills in the HTML
form data. I am developing in delphi to fill input type fields I am using
Chromium1.Browser.MainFrame.ExecuteJavaScript ('document.getElementById ('
+ QuotedStr ('pidlInput_accountHolderName') + '). Value = "' + name + '";',
Chromium1.Browser.MainFrame.Url, 0);
would it have some other simpler way? another question and how to change
the value of a combobox already tried to pass the value by the value
property more did not work. Can anyone help me with how can I pass the
manual value to the combobox using Chromium and delphi?
--
--
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups
"Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
--
Chromium Discussion mailing list: chromium-***@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+***@chromium.org.
Loading...