Questions tagged [getcurrenturl]

6 questions
1
vote
4 answers

Selenium: How to get current url of a tab without switching to it?

I often open hundreds of tabs when using web browsers, and this slows my computer. So I want to write a browser manager in Python and Selenium , which opens tabs and can save the urls of those tabs, then I can reopen them later. But it seems like…
0
votes
1 answer

How to get current url in handlebars

i have a function getQuantityValueFromURL in helpers getQuantityValueFromURL: (url) => { const currentURL = new URL(url); const urlParams = new URLSearchParams(currentURL.search); return urlParams.get('quantity'); } how can i pass the…
Lamey
  • 1
0
votes
0 answers

PHP Phantomjs: How to handle Page Transition? (Web Scraping)

Everyone. This question maybe duplicated with Using PhantomJs, how to get and handle the new page?. But there was not exact answer. My question is as follows. The pages what I want to scrape 3 pages. 1st Page : input unique id , click next. if valid…
0
votes
1 answer

Python: Getting current page url while turning next pages

I'm witting Python script which extract current page url by going to next page, and extract page url. I can confirm that the browser is up and connecting to start page. But after that, Nothing will happen. e.g) start…
0
votes
1 answer

Selenium click and manual click return different current URLs

I've encountered a problem I searched this on google https://www.google.com/search?q=sen%20do&uule=w+CAIQICIZSG8gQ2hpIE1pbmggQ2l0eSwgVmlldG5hbQ%3D%3D and manual clicked on the first result (this link is attached with ads), I got the current url…
0
votes
0 answers

Selenium IE webdriver's getCurrentUrl() leaves out the part of url after the hash

Selenium IE webdriver's getCurrentUrl() leaves out the part of url after the hash. For example, if the current url on the page is https://hostname/some/thing/here#something/after/hash , then the driver.getCurrentUrl() with IE just returns…
Girish
  • 1,981
  • 3
  • 17
  • 18