I have this dic and I would like to work with him:
Inventory_data = {"Inventario_datos": {"Alti MW $ 2 |": {"Floor_price": '2.5', "Li_platform": "1"
"Excel_name": "Alti MW $ 2.xlsx", "Li_Publisher": "2",
"Tag_Rate": "2", "TagName": "Alti MW $ 2 |"}},
{"Alti MW $ 3 |": {"Floor_price": '2.75', "Li_platform": "1",
"Excel_name": "Alti MW $ 2.25.xlsx", "Li_Publisher": "2",
"Tag_Rate": "2.25", "TagName": "Alti MW $ 2.25 |"}}, ...}
I build a program a few days ago and it works with Selenium (webdriver). This is part of the program code. Inventory_data has a field with the name of each group of values, in this case they are "Alti MW $ 2 |" and "Alti MW $ 3 |". What I'm looking for is that by typing the field somewhere in the code (for example, "Alti MW $ 2 |") write all the values within the field.
It would be something like this:
Escriba el campo = "Alti MW $ 2 |"
#Packs para completar
TagName = "{}"
Floor_price = '{}'
Li_platform = '// * [@ id = "platform_listbox"] / li [{}]'
Excel_name = '{}'
Li_Publisher = '// * [@ id = "publisher_listbox"] / li [{}]'
Tag_Rate = '{}'
terminado:
Escriba el campo = "Alti MW $ 2 |"
#Packs para completar
TagName = "Alti MW $ 2 |"
Floor_price = '2.8'
Li_platform = '// * [@ id = "platform_listbox"] / li [1]'
Excel_name = 'Alti MW $ 2.25.xlsx'
Li_Publisher = '// * [@ id = "publisher_listbox"] / li [2]'