How to connect to MongoDB using Selenium Webdriver in C# language

735 views
Skip to first unread message

manoj kumar

unread,
Jul 24, 2014, 9:26:56 AM7/24/14
to seleniu...@googlegroups.com
Hello,

I want to connect to MongoDB to delete some users in database.
How can i connect to database using selenium webdriver in C#language.

Please help me.

Thanks

Krishnan Mahadevan

unread,
Jul 24, 2014, 9:36:43 AM7/24/14
to seleniu...@googlegroups.com
What does selenium have to do with connecting to MongoDB ??

~ Krishnan

iSent. iPhone. iReget.iTypos!
--
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-user...@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/80d798da-d01c-4a4b-afb5-b02bf79c4514%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

manoj kumar

unread,
Jul 24, 2014, 10:06:48 AM7/24/14
to seleniu...@googlegroups.com
Thanks for your reply.

I want to create a user with my automation scripts.
When i run my scripts again, functionality says, email address already exists.

So, i want to connect to database ( MongoDB ) and delete the user first ( if user exists in database ) and run my script.

I am not sure whether i need to use selenium webdriver when connecting to database?

What i need to do , to perform the above action?

Thanks


--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/qxNWBGnr3Kw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.

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



--
manoj

Krishnan Mahadevan

unread,
Jul 24, 2014, 10:21:04 AM7/24/14
to seleniu...@googlegroups.com
Does connecting to a DB need a browser ? Selenium is a web browser automation tool. 
Please google up on "how to connect to Mongo DB using .NET" and you should find answers on your own !


~ Krishnan

iSent. iPhone. iReget.iTypos!

suneel kumar

unread,
Jul 24, 2014, 11:24:41 AM7/24/14
to seleniu...@googlegroups.com

If u ask this question, clearly u don't know the basics of webdriver.

Jim Evans

unread,
Jul 24, 2014, 9:33:42 AM7/24/14
to seleniu...@googlegroups.com
Let me answer your question by asking another. How would you connect to a database using C# *without* using WebDriver? When you can answer my question to you, you will have found the answer to your own question.

More direct way of saying this: The .NET bindings for WebDriver don't have anything to do with connecting to databases; Selenium isn't the right tool for this, so you're unlikely to get the help you're looking for here. You'll need to use another technology to do so from C#.
Reply all
Reply to author
Forward
0 new messages