I have the custom attribute called upgrade-test="secondary-pull" in the following script:
<section class="dvd-pull tech-pull-- secondary-pull--anonymous tech-pull--digital secondary-pull--dvd-ping tech-pull--minimise" upgrade-test="secondary-pull" data-js="primary-pull" style="--primary-direct-d_user-bottom-pos:-290px;">
I wish to use this attribute to identify the element in question. I have tried the following, but unfortunately the script did not work:
element = driver.find_element(By.XPATH, "//class[contains(@vlaue, 'secondary-pull')]")
Any help would really be appreciated. Thanks