Convert Watin Browser Session to Selenium Browser session? c# - c#

I have a Watin browser session named ie. I've ran into a situation where I need Selenium's help to execute an action. Is there any way to quickly tell Selenium to use the browser associated with Watin session ie? (I'm working in a child thread).

Related

Can't log into USPS website with sendkeys

I'm writing a C# scraper so I can download my delivery receipts. I'm trying to use findelement and sendkeys/click to login to the usps website https://reg.usps.com/entreg/LoginAction_input .
When I attempt this method, I get an invalid login error. I know the code works because I login other sites using the same method or even through JAVASCRIPTEXECUTOR.
In my current workaround, I have to TAB over to the input field and call inputsimulator. However, I want to make my application headless which will not play well with InputSimulator as it as not tied to the selenium driver browser so I would really like to use sendkeys or another alternative. I have also tried to use javascript executor without any luck. Please help. Thank you.

Use selenium to log in chrome with different user

Now I want to do automated web testing with selenium in Specflow, and I have several credentials to test. The question is How to switch domain to log in chrome browser with C# code in selenium. I have tried the solution in this But I found the new chromedriver() cannot be modifiied. I can do manually change the domain by shift and right click chrome browser to run as a different user, but I can't solve it automaticaly.

Webbrowser control issue with cookies

i have created web browser control in c#. I used to open .net website into this control. Once page is completely loaded.i was using cookies of this browser control to create httprequest and used to execute request. I used to get data which was needed for me.
But all of sudden this stopped working. I checkd to see what happened then i found that issues are with cookies are being formed throught browser control.For example, if i use page url on IE browser and then get cookie and supply it to httprequest. It works good. But same thing with web browser control is not working now.
Another thing, Forget about httprequest, Download from webbrowser control itselft is also failing. But its working in IE. What could be stopping it to download fail in web browser control and work in IE.
Dont understand how.please help.
This issue is not with the cookies. it is with the browser emulation. By default webbrowser control take IE emulation. but if you need to mention which browser version you want control to use. By using registry.
I emulated IE to my application by changing registry information. and it started working.

Fill form values on external website using Selenium?

I have a ASP.Net application .When user clicks a link, his username and password for a third party website should auto-populate to that website.
I have seen Selenium web drivers can do this, but only on the local machine(server).
Is it possible to automate this on client browsers?
I do not think you can do this at client side that will be security issue then. Any way once you open the third party website on a click from your website either that new website loads independently or loads inside a iFrame inside your application depending upon your inmplementation in both cases you can not access anything in the site using the Javascript or something else. And Selenium is not at all possible as it is Java you can not run it in a clients machine.

need google chrome or firefox automation c#

I would need to start a chrome session login to a page then open a url and close chrome.
I could do this in ie but the page is not ie. optimised. I dont seem to be able to automate firefox or chrome . Any ideas ?
ta,
gabor
Any reason why the page needs to be accessed by a web browser? It would be easier to create a web request in c# and access the page that way. Unless you need this for some kind of integration testing.
You can use Selenium. It has drivers for IE, firefox and chrome. If you need a tutorial how to start you can watch: http://www.youtube.com/watch?v=y9iFvpK10fw

Categories

Resources