I have the following line of code in my program which works fine:
element_present = EC.presence_of_element_located(By.ID, 'Group_Documents_139')
I need to change the searched string to use a variable. I tried the following:
uploadsStartString2 = 'Group_Documents_139'
element_present = EC.presence_of_element_located(By.ID, '{0}' .format(uploadsStartString2))
It does not work for some reason. Any help appreciated.