Sanpreet Singh
1 min readAug 27, 2019

Hello Nauman Sheikh, I hope you are in good health. I read the article and found the article very effective. I had been in some trouble using Headless browser using selenium Webdriver. I am explaining here pointwise

  1. I had a link which is changed after few seconds and I need to fetch the changed url using selenium.
  2. Now I had added some time gap and then tried with driver.current_url to get the mapped url but I donot know for what reason I am not getting the current url. I had used time.sleep to put the delay
  3. If I am using the real browser there is no issue and current url is being fetched.

Sir, if you know anything how I can do this with the headless browser it would be good for me.

With Regards

Sanpreet Singh

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Responses (1)

Write a response

Hello Sanpreet,
Thanks for your kind words regarding my article.
Regarding your query, frankly I don’t know the answer as I moved to backend/api testing a while back and haven’t done any frontend testing for a while.
I suggest posting your question to…

--