Hi, some comments about your (py-)selenium ports from June '15 [1]:
$ pkg_info -L py-selenium | grep .so$ /usr/local/lib/python2.7/site-packages/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so /usr/local/lib/python2.7/site-packages/selenium/webdriver/firefox/x86/x_ignore_nofocus.so These are Linux libs. I used to try to build the lib myself, not sure if still relevant and even not sure if building that lib is correct: --- /home/jirib/Downloads/py-selenium/Makefile Mon Jun 22 22:02:43 2015 +++ Makefile Sat Feb 13 22:42:13 2016 @ -10,6 +10,15 @@ CATEGORIES = www devel HOMEPAGE = http://www.seleniumhq.org/ MAINTAINER = frantisek holop <min...@obiit.org> +# XXX: clarify +MASTER_SITES0 = http://selenium.googlecode.com/svn/tags/selenium-2.28.0/cpp/linux-specific/ + +DIST_SUBDIR = py-selenium +EXTRACT_ONLY = ${DISTNAME}${EXTRACT_SUFX} +DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \ + print_events.h:0 \ + x_ignore_nofocus.c:0 + MODPY_PI = Yes # Apache @ -17,5 +26,23 @@ PERMIT_PACKAGE_CDROM = Yes MODULES = lang/python MODPY_SETUPTOOLS = Yes + +post-extract: + cp ${DISTDIR}/${DIST_SUBDIR}/*.[ch] \ + ${WRKSRC}/ + perl -i -pe 's,elf.h,libelf/libelf.h,' \ + ${WRKSRC}/x_ignore_nofocus.c + +post-build: + cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -shared -fPIC -I${LOCALBASE}/include -L${LOCALBASE}/lib \ + -I${X11BASE}/include -L${X11BASE}/lib \ + -o x_ignore_nofocus.so x_ignore_nofocus.c -lelf + +post-install: + rm -rf ${DESTDIR}${MODPY_SITEPKG}/selenium/webdriver/firefox/{x86,amd64} + ${INSTALL_DATA_DIR} ${DESTDIR}${MODPY_SITEPKG}/selenium/webdriver/firefox/${ARCH}/ + ${INSTALL_DATA} ${WRKSRC}/x_ignore_nofocus.so \ + ${DESTDIR}${MODPY_SITEPKG}/selenium/webdriver/firefox/${ARCH}/ .include <bsd.port.mk> I still have problem to use both local Firefox. Using OpenBSD Firefox via remote I still can't make it run with Xvfb. Any alternative? A VNC server? I tried py-selenium with phantomjs and it works, but my test was very primitive as I'm very beginner. IMO rc script would be nice. One can put DISPLAY in setenv in login.conf and have selenium working with a display (just theory). rc script would also help to maintain multiple hub instances (symlinks)... Thanks for working on (py-)selenium. j. [1] http://marc.info/?l=openbsd-ports&m=143500635028523&w=2