static Webdriver instance synchronization in java

后端 未结 4 1343
北荒
北荒 2020-12-05 22:05

GlobalVariables class holds different variables which are used across my framework one of them is WebDriver instance:

  public class GlobalVariables
                 


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 22:59

    You are getting this because of how JVM handles static members and methods.

    You can't have a static webdriver object if you are going to run in parallel.

    Source: The automated regression system i implemented where I work - we had this issue.

提交回复
热议问题