Coder Social home page Coder Social logo

neooleg / selenide-for-c-sharp Goto Github PK

View Code? Open in Web Editor NEW
11.0 7.0 3.0 63.11 MB

C# binding for Selenide (http://selenide.org/) based on JNI (jni4net lib)

License: Apache License 2.0

Batchfile 29.54% C# 70.46%
c-sharp java jni selenide selenium jni4net

selenide-for-c-sharp's Introduction

How to use

  1. Clone repo
  2. Run build.cmd
  3. Try! For instance, use test/TestSelenideForNet/TestSelenideForNet.sln project for that

WebDriver and Browser Support Warning

Selenium WebDriver doesn't support newest version of browsers out of the box, e.g. Firefox 43+, see details here (Russian only). Thus, both Selenide and Selenide for C# as well will not support newest browsers as soon as they works through Selenium.

Minimum Software Requirements

  1. Visual Studio 2015 (because of C# 6.0)

selenide-for-c-sharp's People

Contributors

dimadubyk avatar fr1z2r avatar neooleg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

selenide-for-c-sharp's Issues

Загрузка классов java ClassLoader

Указанный метод инициализации Java машины:
private static void ConfigureJni4NetSelenide()
{
var bridgeSetup = new BridgeSetup();
bridgeSetup.Verbose = true;
bridgeSetup.AddAllJarsClassPath(".");
bridgeSetup.IgnoreJavaHome = true;
Bridge.CreateJVM(bridgeSetup);
Bridge.RegisterAssembly(typeof(com.codeborne.selenide.Selenide).Assembly);
}
оказался не рабочим.

При регистрации библиотеки падает ошибка загрузки java-класса
Метод выдал исключение: net.sf.jni4net.jni.JNIException: Can't load java class for com.codeborne.selenide.CollectionCondition from classLoader sun.misc.Launcher$AppClassLoader@9931f5 ---> java.lang.ClassNotFoundException: com.codeborne.selenide.CollectionCondition.
Result StackTrace:
java.net.URLClassLoader$1.run() :-1
java.net.URLClassLoader$1.run() :-1
java.security.AccessController.doPrivileged() :-2
java.net.URLClassLoader.findClass() :-1
java.lang.ClassLoader.loadClass() :-1
sun.misc.Launcher$AppClassLoader.loadClass() :-1
java.lang.ClassLoader.loadClass() :-1
в net.sf.jni4net.jni.JNIEnv.ExceptionTest()
в net.sf.jni4net.jni.JNIEnv.CallObjectMethodPtr(IJvmProxy obj, MethodId methodIdNative, Value[] args)
в java.lang.ClassLoader.loadClass(String par0)
в net.sf.jni4net.utils.Registry.LoadClass(String name, ClassLoader classLoader, JNIEnv env)
--- Конец трассировки стека внутреннего исключения ---
в net.sf.jni4net.utils.Registry.LoadClass(String name, ClassLoader classLoader, JNIEnv env)
в net.sf.jni4net.utils.Registry.RegisterClass(RegistryRecord record, ClassLoader classLoader, JNIEnv env)
в net.sf.jni4net.utils.Registry.BindJvm(RegistryRecord record, ClassLoader classLoader, JNIEnv env)
в net.sf.jni4net.utils.Registry.BindJvm(RegistryRecord record, JNIEnv env)
в net.sf.jni4net.utils.Registry.RegisterType(Type type, Boolean bindJVM, JNIEnv env)
в net.sf.jni4net.utils.Registry.RegisterAssembly(Assembly assembly, Boolean bindJVM)
в net.sf.jni4net.Bridge.RegisterAssembly(Assembly assembly)
в UnitTestProject1.UnitTest1.ConfigureJni4NetSelenide() в d:\TFSProject\UnitTestProject1\UnitTestProject1\UnitTest1.cs:строка 38
в UnitTestProject1.UnitTest1.TestMethod1() в d:\TFSProject\UnitTestProject1\UnitTestProject1\UnitTest1.cs:строка 20

Нужна помощь в решении проблемы. Связаться можно в скайпе pantyhin_aleksey.
Жду выхода на связь.

Required repo with latest selenide version.

This is not an issue actually. A humble request rather. :)

The repo is working fine with the selenide 3.0. Great work.

Can we get the updated repo with latest selenide version?

Or at lest how to do steps to work with latest selenide version with C#.

Thanks!
Shailesh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.