Bottom Page

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.
Quote
#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.
Quote
#23
wow... the thought of simply going back never crossed my mind.

Do you know what the cause of that error is via selenium?
Quote
#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.
metulburr likes this post
Quote
#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!
snippsat and metulburr like this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Selenium error with ebdriver (geckodriver) Martinelli 4 207 Sep-24-2019, 01:40 AM
Last Post: Martinelli
  Selenium click on popup button??? GuJu 7 974 Jul-20-2019, 09:21 AM
Last Post: Nizam
  Error when trying to use Selenium ejected 1 745 Mar-26-2019, 04:53 AM
Last Post: ejected
  Instagramlogin Error (Selenium) julian_veit 0 384 Jan-26-2019, 02:40 PM
Last Post: julian_veit
  Click Element if displayed using Selenium and Python giaco__mar 1 689 Dec-27-2018, 06:19 PM
Last Post: metulburr
  selenium error : evilcode1 7 916 Nov-12-2018, 01:08 PM
Last Post: snippsat
  Selenium xpath finding gif to click fyec 1 911 Jul-27-2018, 05:20 PM
Last Post: snippsat
  Getting error when accessing elements in a modal window of an webpage using selenium sumandas89 3 2,413 Jul-13-2018, 10:44 AM
Last Post: mlieqo
  Python 3/selenium - nontype error water_fox 2 2,016 Jun-28-2018, 08:19 PM
Last Post: Sudhakar
  Selenium chromedriver and click action Gilles95 4 6,500 Feb-07-2018, 07:28 PM
Last Post: Gilles95

Forum Jump:


Users browsing this thread: 1 Guest(s)