Here's my code:
import threading
import Queue
import socket
import pickle
import base64
import time
def enter_mashov():
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# Create a new instance of the Firefox driver
start = time.time()
driver = webdriver.Firefox()
driver.get('https://safe.mashov.info/students/login.aspx')
# find the elements
IDChanger = driver.find_element_by_id('TextBoxId')
PassChanger = driver.find_element_by_id('TextBoxPass')
IDChanger.send_keys('someid')
PassChanger.send_keys('somepass')
enter_mashov()
I'd like to do the same as I did with the ID Changer and the Password Changer, but I the problem is, it's a drop-down list, and it's options doesn't own IDs or names, but a value.
How to change an object's value, then?
Let's say, change it's value and by that, PICKING an option from the options of the drop-down list?