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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2024

ความคิดเห็น • 28

  • @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 5 หลายเดือนก่อน

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

  • @shoshKid
    @shoshKid 2 วันที่ผ่านมา +1

    Hi Mukesh. Thanks a lot, my tests are finally running. However, there's something weird happening on my side. The issue does not happen when I run my test with mvn test command. However, even after changing testNG version, I get the same issue/error when I run my test on clean IDE (Run as > TestNG Test), but it works if I use mvn test command on terminal.
    eclipse version: 2024-09 (4.33.0)
    java: 11.0.24 2024-07-16 LTS (also tried java 8)
    macOS: sequoai 15.0.1
    chip: M1
    At the moment, I am able to run my tests via mvn terminal, but I would like to resolve the issue when I run on eclipse IDE.
    Thanks

    • @Mukeshotwani
      @Mukeshotwani  วันที่ผ่านมา

      Hi Dede, you can also upgrade and downgrade plugin in eclipse which should fix the issue.

  • @ECSanjayR-sk4hx
    @ECSanjayR-sk4hx ปีที่แล้ว +1

    Really it works for me thank you so much☺

  • @payalpatel2779
    @payalpatel2779 8 หลายเดือนก่อน

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

    • @Mukeshotwani
      @Mukeshotwani  8 หลายเดือนก่อน

      Great Payal Happy Learning

  • @ashishsahu8065
    @ashishsahu8065 ปีที่แล้ว +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  วันที่ผ่านมา

      Hi Ashish in such cases you need to keep this scenario as seperate classes.

  • @bhagyashreek1807
    @bhagyashreek1807 หลายเดือนก่อน +1

    Iam not using testng, still its showing , when i used selwnium code it came before it was fine

    • @Mukeshotwani
      @Mukeshotwani  หลายเดือนก่อน

      Hi Bhagyashree, please use Java 11 or Java 17 with Selenium 4.24.0 to fix this issue.

    • @bhagyashreek1807
      @bhagyashreek1807 หลายเดือนก่อน +1

      @@Mukeshotwani ok , i will do it sir thank you

  • @eshram322
    @eshram322 5 หลายเดือนก่อน +1

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

    • @Mukeshotwani
      @Mukeshotwani  วันที่ผ่านมา

      which version of selenium u r using?

  • @AutomationFiddlerTest
    @AutomationFiddlerTest 9 หลายเดือนก่อน +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..

    • @AutomationFiddlerTest
      @AutomationFiddlerTest 9 หลายเดือนก่อน +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?

  • @abinashprakash804
    @abinashprakash804 ปีที่แล้ว +1

    Its works for me thanks a lot🤩

  • @adityamodi4252
    @adityamodi4252 ปีที่แล้ว

    Issue resolved, thanks..

  • @saurabhsharma-cf7fn
    @saurabhsharma-cf7fn ปีที่แล้ว +1

    Hello sir please start POM in playwright 🙏

  • @LifeHoTohAisii
    @LifeHoTohAisii ปีที่แล้ว +1

    Really it works for me thank you so much☺

    • @Mukeshotwani
      @Mukeshotwani  ปีที่แล้ว

      Hey Prity, I am glad it helped.