Selenium jar/eclipse

+1 vote

Hello , 

I got a problem with my selenium webdriver test . 

As you can see from the images - test is working fine . 

When i'm trying to create .jar file it's giving me error:
  Could not find main method from given launch configuration so i'm changing the code and adding 
   public static void main(String[] args)  - to create the main class , everything breaks ...

Could you tell me what is going on here and how to fix that ?

even if i change the code and try to make .jar i'm still getting the same error

Oct 17 in Selenium by Mateusz
• 170 points

recategorized Oct 18 by Omkar 45 views

1 answer to this question.

0 votes

Hey Mateusz, checkout this thread to know how to create jar from selenium script files: https://support.smartbear.com/alertsite/docs/monitors/web/selenium/create-runnable-jar-from-selenium-script-using-eclipse.html

answered Oct 18 by Abha
• 27,180 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

How can I download the *.jar file from http:// seleniumhq.org using selenium WebDriver?

For Selenium Standalone Server use this: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); and ...READ MORE

answered Apr 9, 2018 in Selenium by Martin
• 4,220 points
627 views
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,110 points
1,009 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
1,154 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
894 views
0 votes
1 answer
0 votes
1 answer

How to import TestNG in Eclipse for Selenium?

Hi Charu, to install TestNG framework in ...READ MORE

answered May 17 in Selenium by Abha
• 27,180 points
77 views