Using the top answer in this question to create new driver objects for each window using selenium (i.e. create a new variable name for a new webdriver object for each window). How can I name the new variable after a dictionary value through indexing a dictionary?
Here's a list of dictionaries:
individual_window_array = [{"window_numeric_name/driver_object_name":f'{window_numeric_name}'}, {"window_description":f'{current_window_description}'}
,{"window_tabs":f'{current_window_tabs}'}, {"window_custom_title":f'{current_window_title}'}]
How do I dynamically name the new driver objects (corresponding to each window) after a value of a dictionary indexed like this:
new_window = next(iter(individual_window_array[0].values()))