How to pass variable inside my xpath and use it? Or please advise if there is a better way to do this. Then I will do IF condition, in case my page will contents appropriate report name.
here is a pseudo code:
unique_report_name = ("rep" + str(randint(100, 200)))
create report...
search created report...
result = driver.find_elements_by_xpath("//*[contains(text(),'Report Name :"unique_report_name"')]")
if result is displayed:
do something...
