firefox - python element is no longer attached to the dom selenium -


I get "element is no longer linked to domain" exception Although the element exists and is clickable, I try To click on the "Next" arrow on the Ryanair website, here is the html for the next button:

  & lt; li class = "newer" ng-class = "{'loadingsmall': loading}" & gt; & Lt; One ng-disabled = "loading" ng-click = "load more (0, 'select input $ LinkButtonNext1', 1)" title = "next week" href = "" & gt; & Lt; / A & gt; & Lt; / li & gt;   

I am located in many situations and clicked it:

  elem = WebDriverWait (Browser, 15). Until (EC.element_to_be_clickable (By.XPATH, "// [[title = 'Next week']"))) elem = Browser.find_alement_bibspace ("// [[title =" next week '] ") Elem.click ()   

and: area = browser.find_edit_b_spept ("// [[title = 'next week']) verb = WebDriver.ActionChinus (Browser) Action.click (area) action.parform ()

and:

  elem = browser .find_element_by_link_text ('& gt;') elem.click ()   

if any among me The action has not taken place, but once I tell the Selenium to click on the other elements on the page (I do not go to other pages, I keep on it) show page and some dynamic content) "Next" link Only works for the first time, and then gives me the exception, the help will be greatly appreciated! :)

You are still on the same page but due to some AJAX actions the elements of DOM have changed. & Amp; So you have to find out again using your object:

  elem = browser.find_element_by_link_text ('& gt;')   

If you don

for more Html

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -