I'm having trouble updating the input field value in a form, even after attempting various methods.
The input value can be found at this URL
Email: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="df89bab3bef1bebbb2b69fb8b2beb6b3f1bcb0b2">[email protected]</a>
PW: Testing@123
After performing certain actions on the page, a form appears. Here are the steps:
1. Click on the "Sell Order" red button on the left side of the Dashboard widget
2. A popup will appear, choose "Order Type" as "Limit"
3. Another form field named "Limit Price" will appear
https://i.sstatic.net/OvBFi.png I've tried changing it using Selenium and JavaScript, but the value remains unchanged when submitting the form by clicking "Send Order".
This is the code I've used:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
import time
driver.get(url)
driver.find_element_by_css_selector('#gwt-uid-770 > span > span > input').send_keys('6700')
I've also attempted this approach:
driver.execute_script("document.querySelector('#gwt-uid-770 > span > span > input').value=6700")
Despite these efforts, the input value remains unchanged upon submission.