Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98822

Different behavior between a click Selenium and Mouse click

$
0
0

Current Behavior

Using this piece of code

    from selenium import webdriver
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    from selenium.webdriver.common.by import By
    browser = webdriver.Firefox()
    button_value = '/html/body/div/div[2]/div/div/div/div/div[1]/div/form/div/div[3]/div[3]/a[2]'
    .........
    browser.find_element(By.XPATH, pin_box).send_keys(pin)
    browser.find_element(By.XPATH,, button_value).click() #Click NEXT Button

on this page

enter image description here

I end up going back to the login page

Whereas if I put a break point on

browser.find_element(button_type, button_value).click()

and I click with the mouse manually enter image description here

I am going to the desired page

Expected Behavior

To end up on the desired page (i.e not the login page) via Selenium like if I was manually clicking on the next button

PS: PIN html source in case you need


Viewing all articles
Browse latest Browse all 98822

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>