JavaScript button press emulation
In C#, the Chromium browser is installed, and it is required that when clicking the button in the program, the text field becomes active. The website used is - https://chat.deepseek.com/ - here it is necessary for the program to insert a message into the text field and send it. The code used only inserts the message into the text field, but it remains inactive until any key on the keyboard is pressed manually, meaning an emulation of pressing the enter or space key is needed.
The code that previously worked and correctly sent messages:
string script = "var input = document.querySelector('#chat-input');" +
$@"input.value = '{textBox1.Text}';" +
"var event = new Event('input', { bubbles: true });" +
"input.dispatchEvent(event);";
browser.ExecuteScriptAsync(script);
script = "var input = document.querySelector('#chat-input');" +
"input.dispatchEvent(new KeyboardEvent('keydown', { keyCode: 13, bubbles: true }));";
browser.ExecuteScriptAsync(script);
Client's review of cooperation with Aleks Klischuk
JavaScript button press emulationThe project was completed very quickly and with high quality.
Freelancer's review of cooperation with Anton Egorov
JavaScript button press emulationWonderful. Super. Excellent.
-
502 5 0 Good day! Write. I will do it in literally half an hour.............................
Current freelance projects in the category C#
Authenticate using an electronic digital signature and cryptographic library
27 USD
Understand the principle of implementing authorization on a website using a hardware cryptographic key (PKI/token), including the signing process, verification, and client interaction with the server through the appropriate software/libraries. C#, Web Programming ∙ 1 hour 9 minutes back ∙ 7 proposals |
Creation of a plugin for integration with the POS system Syrve, C#Develop a plugin for the Syrve POS system (on-premise), which is installed on the establishment's server. The plugin must: (1) transmit data to our server in real-time — orders, table statuses, payments, receipts; (2) receive commands from Reservble — booking confirmations,… C#, Web Programming ∙ 2 days 5 hours back ∙ 11 proposals |
Creation or refinement of firmware and logic for three autonomous LoRa stations based on ESP32.
112 USD
Creation or refinement of firmware and logic for three autonomous LoRa stations based on ESP32. The devices must set up a Wi-Fi access point, serve a local site via a browser (HTTP), receive text and images within a radius of 5-10 km (plus or minus), store data (preferably on… C & C++, C# ∙ 2 days 12 hours back ∙ 3 proposals |
S1GG1LA person is needed who can take the initial code of the Minecraft launcher for the project, change the design at their discretion, but there are small style requirements for it to be in purple tones. Regarding payment, please suggest a price for the work. However, the budget is… C#, Gaming Apps ∙ 4 days 21 hours back ∙ 7 proposals |
Improvement in the existing version of 1C retail block for the distribution center (DC)In general, I will explain what kind of database we have - There is a main server where there is a retail database (where all receipts are recorded) - a UTP database - where all sales are transferred - it calculates the markup and stock balances - small databases of retail… C & C++, C# ∙ 9 days 21 hours back ∙ 6 proposals |