I'm comparing data frames with Python
if not ((df['on']) == (driver.found_elements_by_class_name('bg_wrap')[0]):
print ("Run")
If you compare selenium and dataframe, The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). This error appears. Does anyone know why?
python
According to the Manual, find_elements_by_class_name('bg_wrap')[0]
you will get one WebElement I think you need to get text in it and compare it?
if df['on'] != driver.find_elements_by_class_name('bg_wrap')[0].text :
print ("Run")
© 2024 OneMinuteCode. All rights reserved.