Bad Class File Error in java | Wrong Version Issue In Maven With TestNG | Fix Provided

Поделиться
HTML-код
  • Опубликовано: 20 фев 2023
  • Many times when you try to run your automated test via the maven surefire plugin, you might come across a bad class issue in Java with testing. In this video, I have provided a quick fix for the same.
    All Playlist
    / mukeshotwani
    Selenium With Java
    • How To Learn Programmi...
    If you want to support this channel
    rzp.io/l/qNCApzHHL3
    All Playlist
    / mukeshotwani
    Connect with us:
    Email - mukeshotwani@learn-automation.com
    Linkedin- / mukesh-otwani-93631b99
    Instagram- / mukeshotwaniofficial
    Facebook Group- / 256655817858291
  • НаукаНаука

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

  • @saiprathyusha9902
    @saiprathyusha9902 Год назад

    It works for me really I spend whole day to fix it. After watching your video less than 1 min issue fixed. Really u helped me alot.

  • @BestVlogsForYou
    @BestVlogsForYou 2 месяца назад

    Thanks. It helped me solve my problem. You saved my time.

  • @ECSanjayR-sk4hx
    @ECSanjayR-sk4hx Год назад +1

    Really it works for me thank you so much☺

  • @payalpatel2779
    @payalpatel2779 5 месяцев назад

    thank you so much for this information. my tests are running now easily

    • @Mukeshotwani
      @Mukeshotwani  5 месяцев назад

      Great Payal Happy Learning

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

    Issue resolved, thanks..

  • @ashishsahu8065
    @ashishsahu8065 Год назад

    Hi mukesh sir hope you are doing good, I have one doubt let's say I am creating one end to end flow where the first page belongs to the login page and then create the course and then log out. And I am taking login test data from excel using data provider in which valid credentials and invalid credentials are there so how this flow will be done. Because for invalid we have to handle warning messages.? Please help me on this.

  • @eshram322
    @eshram322 2 месяца назад

    Im also facing the same issue but not with TestNG but with Webdriver.class....can you please provide me a solution??

  • @user-or4uc6ex3d
    @user-or4uc6ex3d 6 месяцев назад +1

    I have facing below issue while creating build using maven : Error:(3, 34) java: cannot access org.openqa.selenium.remote.RemoteWebElement
    bad class file: C:\Users\[username]\.m2
    epository\org\seleniumhq\selenium\selenium-remote-driver\4.16.1\selenium-remote-driver-4.16.1.jar(org/openqa/selenium/remote/RemoteWebElement.class)
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    below dependencies i have used
    selenium-java - 4.16.1
    io.appium - 8.2.1
    testng - 7.8.0
    java (jdk) -17
    Did you have any idea why this issue I am facing, I am trying solve but did not get any solution..
    If you have any solution ..please suggest..

    • @user-or4uc6ex3d
      @user-or4uc6ex3d 6 месяцев назад +1

      I got the solution... when I apply java version 11 then it resolve...

  • @nawazpasha2505
    @nawazpasha2505 Год назад +1

    I'm facing same issue with maven and Java 11. So what is solution so I can use Java 11.

    • @Mukeshotwani
      @Mukeshotwani  Год назад

      Have you tried the solution which I have mentioned in the video?

  • @saurabhsharma-cf7fn
    @saurabhsharma-cf7fn Год назад

    Hello sir please start POM in playwright 🙏

  • @abinashprakash804
    @abinashprakash804 Год назад

    Its works for me thanks a lot🤩

  • @LifeHoTohAisii
    @LifeHoTohAisii Год назад +1

    Really it works for me thank you so much☺