මේ code එකේ Duration කියන තැනට 10යි. Stake කියන තැනට 0.35යි දාන්නෙ කොහොමද?
Python:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
path = 'C:\Program Files (x86)\chromedriver.exe'
driver = webdriver.Chrome(path)
driver.get("https://www.binary.com/en/trading.html")
driver.maximize_window()
driver.find_element_by_id("underlying_component").click()
driver.find_element_by_id("R_10").click()
driver.find_element_by_xpath("//body/div[2]/div[2]/div[3]/div[2]/div[2]/div[1]/div[8]/div[1]/div[1]/div[2]/div[1]/form[1]/div[2]/div[2]/div[1]/div[1]/div[1]").click()
driver.find_element_by_xpath("//li[contains(text(),'minutes')]").click()
driver.find_element_by_xpath("//input[@id='duration_amount']").send_keys(10)
#driver.find_element_by_xpath("//input[@id='amount']").clear().send_keys(0.35)
amount = driver.find_element_by_id("amount")
amount.send_keys(Keys.BACKSPACE)
amount.send_keys('0.35')
driver.find_element_by_xpath("//body/div[2]/div[2]/div[3]/div[2]/div[2]/div[1]/div[8]/div[1]/div[1]/div[2]/div[1]/form[1]/div[12]/label[1]").click()
Last edited: