Identify items from a combobox and play in the loop for using Selenium JS and Python

1

I need to make a for loop to open an x number of tabs and each tab uses a different dashboard. The first part I already did how could make the second? Remembering preferentially with Xpath using JS and Python. Here is the code:

# Abre qnt de abas de acordo com os dashboards
for i in range(0, len(config['idDashboard'])):
	browser.execute_script('window.open("' +  config['url'] + ' ", "_blank");')
	time.sleep(2)

# Configura um dashboard por aba	
for i in range(0, len(config['idDashboard'])):
	time.sleep(10)
	browser.switch_to_window(browser.window_handles[i])
driver.switchTo().window(mainWindowHandle);
    
asked by anonymous 13.11.2017 / 19:31

0 answers