Python Forum
Python Selenium .click() Loads Error - Works Manually.- Events not Triggered
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Selenium .click() Loads Error - Works Manually.- Events not Triggered
#21
I was able to create the account...

I will pm you the details.
Reply
#22
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)
Output:
This package is not eligible for a service refund. Service refund requests must be submitted within 15 days of the scheduled delivery date. (EBIL_500)
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.
Reply
#23
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:
Reply
#24
(Aug-11-2019, 11:14 PM)metulburr Wrote: Do you know what the cause of that error is via selenium?
No,it was doing something like auto submit that was wrong.
Going back then doing own submit did the trick.
Reply
#25
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Click on a button on web page using Selenium Pavel_47 7 4,677 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  Show HTML in Python application and handle click SamHobbs 2 2,718 Sep-28-2021, 06:27 PM
Last Post: SamHobbs
  Selenium/Helium loads up a blank web page firaki12345 0 2,042 Mar-23-2021, 11:51 AM
Last Post: firaki12345
  button click error rafarangel 2 3,116 Feb-11-2021, 08:19 PM
Last Post: buran
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,820 Jun-07-2020, 04:42 PM
Last Post: samlee916
  Hyperlink Click is not working in Selenium webdriver rajeev1729 0 2,023 May-02-2020, 11:21 AM
Last Post: rajeev1729
  selenium click in iframe fails 3Pinter 6 5,105 Apr-29-2020, 12:59 PM
Last Post: Larz60+
  Selenium weird error julio2000 0 1,668 Feb-23-2020, 01:24 PM
Last Post: julio2000
  Selenium webdriver error WiPi 4 12,090 Feb-09-2020, 11:38 AM
Last Post: WiPi
  error when running headless selenium julio2000 2 4,551 Feb-01-2020, 12:41 PM
Last Post: julio2000

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020