Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6831737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:46:22+00:00 2026-05-26T22:46:22+00:00

I want to retrieve the request parameters of the URL using selenum-1 Is there

  • 0

I want to retrieve the request parameters of the URL using selenum-1 Is there a way? I saw the API list getLocation() method returns the absolute URL.

If the URL is http://webserver/webapps/library/do/javabooks/author?author_id=42&book_id=55

If I am writting selenium.getLocation() it returns me http://webserver/webapps/library/do/javabooks/author. But I am interested in the request parameters. Or if I can get the full URL with request parameters using Selenium API that is also fine.
Is there any way?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:46:22+00:00Added an answer on May 26, 2026 at 10:46 pm

    I don’t know of any function that does that… it is possible to verify the URL like you said, but for things that are just slightly different I tend to use Javascript:

    selenium.get_eval('window.location.href');
    

    If you need it often you might consider wrapping it in a library or function, but this seems quite clean to me. You could expand the Javascript a little to get more control over the returned data: splitting on the ? character and take only the second item in the array, for example. From that point on, perhaps split again on & to get the parameters returned as a list of strings?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a method (getAllTeams:) that initiates an HTTP request using the ASIHTTPRequest library.
I want to retrieve a Map from a using JAX-RS (text/xml) @GET public Map<String,String>
I'm using objective-c & the iphone 3.0 sdk I want to retrieve the contents
If a user goes to profile?id=20 , using request.getPathInfo() just returns /profile . Is
I want to log the request parameters and response body that traffics thru my
Im working on a web application using JSF2 . I want to pass parameters
I want to retrieve information from my Stack Overflow profile as JSON using the
It's there a way to retrieve cookie value in ASHX Handler ? I set
I want to write a c# method to retrieve the current page. eg Default6.aspx
What's the best way retrieve complex queries from a REST service? Suppose I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.