Aug-10-2019, 09:24 PM
I was able to create the account...
I will pm you the details.
I will pm you the details.
Python Selenium .click() Loads Error - Works Manually.- Events not Triggered
|
Aug-10-2019, 09:24 PM
I was able to create the account...
I will pm you the details.
Hi did a test with code in PM.
The error that always get after enter Tracking Number,after error go back driver.execute_script("window.history.go(-1)") .Now do a new submit and it work when i test. driver.find_element_by_id('requestGSR_trackingNumber').send_keys(Keys.RETURN) time.sleep(5) driver.execute_script("window.history.go(-1)") time.sleep(5) submit = driver.find_element_by_id("requestGSR_0") submit.click() time.sleep(5) message = driver.find_elements_by_css_selector('#errorMessage > span') print(message[0].text) Do not need all sleep maybe first so get error can try to remove them,just that easier to track what happens when i look at this for first time.Look at Waits for a more correct way to wait.
wow... the thought of simply going back never crossed my mind.
Do you know what the cause of that error is via selenium?
Recommended Tutorials:
Aug-12-2019, 04:33 AM
Aug-14-2019, 02:23 PM
snippsat,
Sorry for the delayed response, I am just getting back to this. Thank you very much!! It works on my end and is a great solution. metulburr, thank you for your help! |
|