Writing simple code with Selenium C# -- Part 3 (Selenium automation with C#)

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024
  • In this part we will discuss writing simple code in selenium C#
    To learn more from ExecuteAutomation, please subscribe and check out below playlists of FREE courses
    Selenium and C#
    **************
    C# for automation testing - • C# for Automation Testing
    Selenium with C# - • Introduction to Seleni...
    BDD with Specflow - • BDD and Specflow
    BDD with Selenium - • BDD with Selenium and ...
    Selenium .NET Core - • Playlist
    Selenium and Java
    ***************
    Cucumber with Selenium (cucumber focused) - • Section 1 - Cucumber w...
    Cucumber with Selenium (selenium focused) - • Section 2 - Cucumber W...
    Cucumber 4 Upgrade - • Section 3 - Upgrade to...
    Selenium Grid - • Selenium Grid
    Selenium framework development - • Selenium Framework Des...
    Selenium 4 - • Selenium 4
    Selenium Grid with Docker - • Selenium Grid with Docker
    API Testing
    *********
    API Testing with RestAssured - • API Testing with REST-...
    API Testing with RestSharp - • API Testing with RestS...
    API and Database Testing in C# - • API and Database Testi...
    Automation testing with Puppeteer - • Puppeteer
    End to End testing with Cypress - • Cypress Tidbits
    CI/CD with Microsoft Technologies
    ****************************
    Azure DevOps Service 2019 - • Azure DevOps Service 2019
    TFS 2015 - • TFS 2015 (QA & Dev foc...
    TFS 2015 Build System - • TFS 2015 Build Systems
    Automated Build deployment with TFS 2015 - • Automated Build+Deploy...
    Jenkins - Build + Deploy + Test with Jenkins - • Build+Deploy+Test with...
    Docker
    ******
    Understanding ABC of Docker - • Understanding ABC of D...
    Understanding Docker for Windows - • Understanding Docker f...
    Selenium Grid with Docker - • Selenium Grid with Docker
    Kubernates for Testers - • Kubernetes for Testers
    Mobile Testing
    *************
    Understanding Appium - • Introduction to Appium...
    Appium with C# - • Introduction to Appium...
    Appium with Java - • Setting stage ready fo...
    Appium with C# (Advanced) - • Introduction to Appium...
    Appium Framework development - • Introduction to appium...
    Mobile Automation testing with Xamarin.UITesting - • Part 1 - Introduction ...
    Android automation with Robotium - • Part1 - Introduction t...
    Flutter app automation with Flutter Driver - • Part 1 - Introduction,...
    TestProject - • TestProject (Basic)
    Katalon Studio - • Katalon Studio
    WinAppDriver - • Windows Application Dr...
    Raspberry Pi 3 - • Introduction to Raspbe...
    Testim.io - • Testim.io
    Angular Automation - • Angular automation wit...
    EAWeekly - • EA Weekly
    Mocking framework - • Moq - Mocking framework

Комментарии • 99

  • @andred3199
    @andred3199 9 лет назад

    Just written my first Selenium code. Thanks a lot and looking forward to improving my skills with your videos

  • @bwin945
    @bwin945 8 лет назад

    Very good starter demo, easy to understand with well thought out information.

  • @malamalathi340
    @malamalathi340 9 лет назад +1

    simply awesome.....Thank you very much for this useful tutorials..

  • @reloder1249
    @reloder1249 8 лет назад +7

    Fixing the "unknown error: unrecognized Blink revision :
    instead of using the chrome driver used in the tutorial,
    install the "Selenium.WebDriver.ChromeDriver" by jsakamoto
    worked for me

  • @mayurkiran07
    @mayurkiran07 8 лет назад

    Great work karthik

  • @LadyBugs
    @LadyBugs 9 лет назад +1

    Thank you so much for these awasome tutorials!!!

  • @sandeepsohal1543
    @sandeepsohal1543 3 года назад

    Very well explained .. Thank you very much !!!

  • @boldeadavid3324
    @boldeadavid3324 7 лет назад

    For me with the CJ Payne fixes it work. I use VS 2015, and the latest packages in 1st February 2017 :) Thank you all.

  • @fletcherzhou8173
    @fletcherzhou8173 8 лет назад

    Thank you for your video, I learned a lot from it.

  • @philooi973
    @philooi973 8 лет назад

    I have created test cases in VS IDE. It runs well. How do I add code to slow down the process like the Selenium IDE which allows you a time value?

  • @cobramafia6427
    @cobramafia6427 9 лет назад +2

    you can use Firebug to find the ID or name of the particular field.

  • @vijaygolla3595
    @vijaygolla3595 8 лет назад +1

    Hi Karthik thank you very much for the videos... unfortunately im couldn't see the run test option when i right click to run a test. im using vs2010 ultimate.please help to resolve my issue.

    • @ExecuteAutomation
      @ExecuteAutomation  8 лет назад +1

      The Test Explorer is available under Test Menu. But I would request you to change to latest version of visual studio 2015, which have everything you are seeing in the video !!!
      Thanks,

  • @ManiasInc
    @ManiasInc 4 года назад +1

    thanks men....you rules!!

  • @ChrisSk3
    @ChrisSk3 4 года назад

    thank you! do you know what should I do when I publish an app?? I mean I run the published app but for some reason it doesn't work, selenium doesn't run, any idea???

  • @robertshuxley
    @robertshuxley 9 лет назад +1

    your automation videos are truly awesome. Thanks!

  • @priyankajadhav1519
    @priyankajadhav1519 9 месяцев назад

    In the console application the IwebDriver works but not in the C# website getting error "User
    Unable to obtain firefox or chrome using Selenium Manager;"

  • @Freakk825
    @Freakk825 9 лет назад

    Thank you for the great videos!

  • @rahin90
    @rahin90 3 года назад

    thank you for these videos. You are truly a great help. How to Use Assertions in C# for test Case Validation?

  • @eunito
    @eunito 7 лет назад

    is there a way to perform search and data scraping without the browser to open?

  • @sameeryalla
    @sameeryalla 8 лет назад

    Thanq very much for this tutorial :)

  • @codelearnexe475
    @codelearnexe475 3 года назад

    any pros or cons to using a console app vs a class library ?

  • @withpoone
    @withpoone 2 года назад

    Thank you

  • @luismunoz9126
    @luismunoz9126 5 лет назад

    wtf this is so cool! suscribed!

  • @amitsarkar863
    @amitsarkar863 7 лет назад

    Hi doing the same as shown in the video but getting this error "
    object does not contain a definition for Gotourl and no extension method 'gotourl' accepting a first argument of type object could be found
    (are u missing a using directive or an assembly reference)"

  • @sonisingh-yl3vr
    @sonisingh-yl3vr Год назад

    I am running the same code but getting exception "System.ArgumentException: 'elementDictionary Parameter name: The specified dictionary does not contain an element reference'" on line "IWebElement element = driver.FindElement(By.Name("q"));" . Could you please help with this error

  • @photosprince9880
    @photosprince9880 6 лет назад

    Hi, Can we make Edge as default browser here....!

  • @bitsnnbytes
    @bitsnnbytes 7 лет назад

    hi, I am using vs 2015 but when i try to run it by clicking "start button" it runs, opens the console then closes saying that unhandled exception occurred this the code i have typed "IWebDriver driver = new ChromeDriver();
    driver.Navigate().GoToUrl("www.google.com");
    IWebElement emlmnt = driver.FindElement(By.Name("q"));
    emlmnt.SendKeys("hi");"
    Thankyou

  • @FoodieBeastLab
    @FoodieBeastLab 7 лет назад +1

    Thanks karthik... it':)

  • @seanshimon
    @seanshimon 9 лет назад +1

    Thank you.

  • @DR-nx1oe
    @DR-nx1oe 8 лет назад +1

    Hello sir,
    nice tutorial,but am getting at error on running the code which shows an exception as stated below
    unknown error: unrecognized Blink revision: d177478d466b84ab06f0f48081fc30e3b04be6ca
    (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64)
    it is pointing to the first line where we initialise the chrome driver
    PLease HELP!!

  • @vangoghh2340
    @vangoghh2340 4 года назад

    Unfortunately, it seems that the "test webpage" is not existing anymore?

  • @Shakeel-Soft
    @Shakeel-Soft 6 лет назад

    helfull, thanks

  • @LisandroGallagher
    @LisandroGallagher 8 лет назад

    To avoid the Blink error I delete the file ChromeDriver.exe from the project Project/ProjectName/packages/Selenium.WebDriver.ChromeDriver.xxxx/driver and it works now

  • @shaikbarkathulla2460
    @shaikbarkathulla2460 6 лет назад

    Hi brother when I run the test I got exception like session timeout after 60 seconds. How can I fix this?

  • @abhinavsharma2763
    @abhinavsharma2763 6 лет назад

    thanks!

  • @sameerkumar4590
    @sameerkumar4590 7 лет назад

    this code is not working visual studio 2010 I am getting Error 2 Cannot implicitly convert type 'seleniumFirst.FirefoxDriver' to 'seleniumFirst.Iwebdriver' please help me

  • @aravinth9019
    @aravinth9019 9 лет назад +2

    +Execute Automation this is a great tutorial. Thank you for sharing. I followed your steps in my Win 10 machine using VS12 Ultimate edition. However I get the following error on running the test. May I know where I'm making the mistake. I have referenced both webdriver and Chrome driver to my project.
    Error line:
    IWebDriver driver = new ChromeDriver();
    InavlidOperationException:
    unknown error: unrecognized Blink revision: 9fd42dd40d33146ff9afd92f51714f0426c1247c
    (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64)

    • @ExecuteAutomation
      @ExecuteAutomation  9 лет назад

      +aravinthan ramraj Try to get the latest version of Chrome and Chrome Driver along with latest version of Selenium, it should fix !!!

    • @ollie4151
      @ollie4151 8 лет назад

      +Execute Automation not for me :(

  • @ollie4151
    @ollie4151 8 лет назад +2

    Thank you very much!
    Unfortunately, I have this error: (I have the newest version of Selenium and also Chrome)
    An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll
    Additional information: unknown error: unrecognized Blink revision: c26c0312e940221c424c2730ef72be2c69ac1b67
    (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64)

    • @ExecuteAutomation
      @ExecuteAutomation  8 лет назад

      +Ollie C. Please try to update Chrome as well !!!

    • @ExecuteAutomation
      @ExecuteAutomation  8 лет назад

      +Execute Automation And ChromeDriver as well :)

    • @TranThiMyTienAds
      @TranThiMyTienAds 8 лет назад

      I see like this and I updated chrome, but it still warn:
      An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll
      Additional information: unknown error: unrecognized Blink revision: 451c239c3b0722dc867b0f75839b959f729b756a
      (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64)

  • @ankitbrahmbhatt3204
    @ankitbrahmbhatt3204 7 лет назад

    Hi,
    While executing same code i am getting,
    "Starting chromedriver(v 2.10.267521) on port 57377 , only local connections are allowed"
    where selenium version is 3.0.1 and chrome version is 2.10
    kindly please help me

    • @MaxmaHasibulHasan
      @MaxmaHasibulHasan 3 года назад

      hi i'm facing the same issue is your issue fixed let know my friend and how can i fix this issue?

  • @kulwindersidhu1791
    @kulwindersidhu1791 3 года назад

    I am geting element not interactable error any solution ?

  • @LixDAce
    @LixDAce 9 лет назад

    how i can get attribute data-myattr from below html:
    Some Text

  • @nezarhassani6495
    @nezarhassani6495 6 лет назад +1

    thank you , for this awesome video ,
    i do every thing correctly but i faced this error
    error :
    OpenQA.Selenium.NoSuchElementException: 'no such element: Unable to locate element: {"method":"name","selector":"q"}
    (Session info: chrome=66.0.3359.181)
    (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 6.1.7601 SP1 x86_64)'

  • @sibghatullah2736
    @sibghatullah2736 5 лет назад

    how to open the browser inside C# form ?

  • @rahulkumarvij
    @rahulkumarvij 7 лет назад

    when i click start, it says consoleappliation2.exe missing

  • @deepakkumarrout8007
    @deepakkumarrout8007 8 лет назад +2

    Hi, I'm facing some issues when I run this console application. It shows the error as "unknown error: unrecognized Blink revision: 0c319c380220abe3daf0277e40a2d0b22a7c4550
    (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64)"
    Can anyone help me to resolve the issue ?

  • @ImranAliTurk
    @ImranAliTurk 9 лет назад +1

    Hi,
    I am getting below given error on executing this code
    "InvalidOperationException" on browser reference code line.
    "unknown error: unrecognized Blink revision: e8926f681fbb840b4f389e7e692343d4505722ce
    (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64)"
    Please give me a solution for it.

    • @ExecuteAutomation
      @ExecuteAutomation  9 лет назад +1

      +Imran Ali Try to install latest browser and use latest ChromeDriver, this issue should go away !!!

    • @ImranAliTurk
      @ImranAliTurk 9 лет назад +1

      +Execute Automation Thanks for reply, Now its working for chrome driver 2.20. I was using chrome driver 2.10. Thanks again.

    • @LadyBugs
      @LadyBugs 9 лет назад +1

      +Imran Ali I have the same problem! I have donwnload just "C# 2.48.0 2015-10-07" and install it and now I have chrome driver 2.10, how should I update it?

    • @vangoghh2340
      @vangoghh2340 8 лет назад +1

      +Imran Ali How did you get the 2.20 driver? Because in NuGet the latest one is still the 2.10 and I have problems with it.

    • @ImranAliTurk
      @ImranAliTurk 8 лет назад +1

      +Lela Gabelaia Sorry for late replying, I have got chrome driver 2.20 from Nuget package you can downlaod and install from nuget packge.

  • @dineshKUMAR-ri8bl
    @dineshKUMAR-ri8bl 7 лет назад

    It's asking for a file named remotewebdriver.cs
    Please Help me out!

  • @lidiashimelise7732
    @lidiashimelise7732 9 лет назад

    'OpenQA.Selenium.WebDriverException' running to this issue when i try to run the program

    • @DR-nx1oe
      @DR-nx1oe 4 года назад

      even i got the same use the following command in nuget console
      Install-Package Selenium.WebDriver.ChromeDriver -Version 86.0.4240.2200-beta

  • @amit951988
    @amit951988 7 лет назад

    getting this error done same thing as shown in this video --System.InvalidOperationException: 'unknown error: unrecognized Blink revision: 4fd852a98d66564c88736c017b0a0b0478e885ad
    (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.1 SP1 x86_64)'

  • @desmondmiles2817
    @desmondmiles2817 2 года назад

    Hi not able to find element 😥

  • @zur1ch1993
    @zur1ch1993 5 лет назад +1

    I had to download Chromedriver.exe manually and then indicate the path to it in the constructor "new ChromeDriver(@"C:\Program Files (x86)\Google\Chrome\Application");". Otherwise it threw an openqa.selenium.driverservicenotfoundexception exceptoin.

    • @--Arthur
      @--Arthur 5 лет назад +1

      Voilá! You get the man of the day award today!

    • @zur1ch1993
      @zur1ch1993 5 лет назад

      Thank you. Also I recommend to put this chromedriver.exe in your project folder, and use relative path to it, in case you are going to share your project with someone else

  • @ppavansai
    @ppavansai 8 лет назад

    Exception System.Reflection.TargetInvocationException, Exception thrown executing testscan anyone help me to solve this problem when I execute test

  • @ebs200
    @ebs200 9 лет назад

    This video is not loading

    • @ExecuteAutomation
      @ExecuteAutomation  9 лет назад

      +Yasser Elghazi Its working for me, please check again !!!

  • @АристархЗловредович

    turn off in future you yellow circle

  • @hakan.tektas
    @hakan.tektas 7 лет назад

    Thank you for your video, I learned a lot from it.