Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

thejujeevan
Am doing an API testing where I have to test with a different credentials.. so when the webdriver opens it should ask me the login credentials.. please someone help me with this

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b5135fa3-94a9-4e67-943c-1d82c25906a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

cassian
As you are doing API testing, all you have to do is pass the login credentials as part of the request. 
Get a Basic authentication token string and pass that as the header value in the request. This will authenticate the user for the API

Thanks & Regards,
Cassian Raja .T

On Tue, Jun 12, 2018 at 10:17 AM, <[hidden email]> wrote:
Am doing an API testing where I have to test with a different credentials.. so when the webdriver opens it should ask me the login credentials.. please someone help me with this

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b5135fa3-94a9-4e67-943c-1d82c25906a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABh6KKukPUkk7ZEndHnwhtOkXmUs-GdkBSvhUajZEXLnXCgjjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

thejujeevan
Can you send me sample code. To get the basic authentication token 

On 12-Jun-2018 2:34 PM, "Cassian Raja Thomas" <[hidden email]> wrote:
As you are doing API testing, all you have to do is pass the login credentials as part of the request. 
Get a Basic authentication token string and pass that as the header value in the request. This will authenticate the user for the API

Thanks & Regards,
Cassian Raja .T

On Tue, Jun 12, 2018 at 10:17 AM, <[hidden email]> wrote:
Am doing an API testing where I have to test with a different credentials.. so when the webdriver opens it should ask me the login credentials.. please someone help me with this

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/b5135fa3-94a9-4e67-943c-1d82c25906a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABh6KKukPUkk7ZEndHnwhtOkXmUs-GdkBSvhUajZEXLnXCgjjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAA0Ro9t%2BK7QRSqcSLPGuKfpueXpgPUkG1jvMOBm3nV%2BGnKSM8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

Ankit Gupta-2
In reply to this post by thejujeevan
Your login API return the access-token in the response.

On Tuesday, June 12, 2018 at 12:10:10 PM UTC+5:30, [hidden email] wrote:
Am doing an API testing where I have to test with a different credentials.. so when the webdriver opens it should ask me the login credentials.. please someone help me with this

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/66d8fbed-313e-49f2-94e0-ea85d58733a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

cassian
First hit the login or authentication api with your username and password. The response header will have the session token which you can use for further API calls.

Thanks & Regards,
Cassian Raja .T

On Tue, Jun 12, 2018 at 7:05 PM, ankit gupta <[hidden email]> wrote:
Your login API return the access-token in the response.

On Tuesday, June 12, 2018 at 12:10:10 PM UTC+5:30, [hidden email] wrote:
Am doing an API testing where I have to test with a different credentials.. so when the webdriver opens it should ask me the login credentials.. please someone help me with this

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/66d8fbed-313e-49f2-94e0-ea85d58733a3%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABh6KKtnB24k2b_fa5%2BSpjZU8u81AWZyONFV7f3XbAAv2wkpow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Please help me.. I want to run ie webdriver as different user. Is it possible in selenium..

thejujeevan
I need to embed the domain username and password in the url.. but I googled n got to know that is won't support this..

I have tried the below command to run ie as different user..

Runtime.getruntime().exec("cmd.exe /c start runas /env /user:pibranches\\username \"path to the webdriver\"")
It's prompting me for the password ..but
Am getting path not correct error in CMD prompt.


Can you please help me..  

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d3d9460e-fc04-4d07-8674-18be3baf7cc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.