Link to home
Start Free TrialLog in
Avatar of welcome 123
welcome 123

asked on

need some script help with selenium

Appreciate if someone can help me?

I need to Create a Selenium Webdriver script written in any language in C#
·         The script should be able to run against Firefox and Chrome browsers

·         The script should do the following:

1.      Register a new user

2.      Verify the user is Signed-in.

3.      Run a search to find users and add at least one user as a favorite.

4.      Sign out the user and verify that the user is signed out.

5.      Sign in again and verify that the user can see his/her favorited user (from step 3).
ASKER CERTIFIED SOLUTION
Avatar of Craig Kehler
Craig Kehler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of welcome 123
welcome 123

ASKER

can you please help me in detail how to install the IDE on firefox or any other browser?
Ignore I already installed. But how can it also work on chrome.
Firefox is used to record the script and get the basic locators and actions. Then when you copy and paste from the IDE you will see usable C# code that can be run under any supported webdriver browser. Since you are using C# I'm assuming you will be using Visual Studio. I found this instructional video on setting up Visual Studio to run Webdriver tests. https://www.youtube.com/watch?v=2ac4hKSfQ9s

After you finish step 6 in the linked article you will be ready to paste the code into Visual Studio.

For running the tests in Chrome see https://www.experts-exchange.com/questions/28699394/Selenium-Chrome-Change-proxy-without-creating-a-new-instance-of-the-chrome-driver-C.html

The important part is "ChromeDriver driver = new ChromeDriver(capabilities);"

I run my webdriver tests in java through Eclipse. So the formatting will be different.
I am fine if the code is in Java too if you can help me get this script  as a start Will work and learn more for the future ones.
I think I got it to some extent now. Will try a little bit more and close the ticket. Any code which does the code simultaneously on both drivers will help
more importantly thanks for your help
Cool glad to hear you are making progress. I think you can run simultaneous drivers for different tests and different browsers but that probably warrants another question so this one doesn't get fragmented.