start_time = time.time()
myElem = WebDriverWait(driver, delay).until(EC.presence_of_element_located((By.XPATH,
'/html/body/app-root/div[1]/div[1]/div[3]/div[2]/div[1]/div/app-home/div/div[1]/app-slider/div/ngx-siema/div/div/div[4]/ngx-siema-slide/div[1]')))
x = ("%s" % (time.time() - start_time))
roundE = float(x)
print(roundE)
when I print Rounde output is 0.016000032424926758 is there any way to get 1 seconds ? ?
roundEvariable is float. Try to cast it tointprint(round(roundE))floattostrwhich isn't needed, just useround(time.time() - start_time)