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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
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.
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, <theju...@gmail.com> 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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABh6KKukPUkk7ZEndHnwhtOkXmUs-GdkBSvhUajZEXLnXCgjjA%40mail.gmail.com.
--
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 selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/66d8fbed-313e-49f2-94e0-ea85d58733a3%40googlegroups.com.
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..