Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2016 12:21:30 +0100
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        blubee blubeeme <gurenchan@gmail.com>
Cc:        rene <rene@freebsd.org>, freebsd-chromium <freebsd-chromium@freebsd.org>
Subject:   Re: https://github.com/gliaskos/freebsd-chromium
Message-ID:  <1482924090.1402.12.camel@FreeBSD.org>
In-Reply-To: <CALM2mEkuLZ%2Br08oHbWoysz1ND1Cj=gTLCwOvyCWJ2x=MQDJENw@mail.gmail.com>
References:  <1482870406.70687.4.camel@FreeBSD.org> <CALM2mEkuLZ%2Br08oHbWoysz1ND1Cj=gTLCwOvyCWJ2x=MQDJENw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-AEbdcLf+k+qgmoXc8xJH
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, 2016-12-28 at 14:55 +0800, blubee blubeeme wrote:
> The issue seems to be a very old bug https://bugs.chromium.org/p/chro
> medriver/issues/detail?id=3D817
>=20
> The issue with this bug is it only shows up on long running sessions.
> Basically I can reproduce this error 100% of the time by loading up a
> chrome browser through selenium.
>=20
> just do this in a loop, if your loop is around 50 or more the bug
> always shows up.=C2=A0
>=20
> create a chrome webdriver
>=20
> for index in range(10):
> =C2=A0 =C2=A0 webdriver.get("http://google.com")
> =C2=A0 =C2=A0 sleep(2)
> =C2=A0 =C2=A0 continue
> webdriver.quit()
>=20
> I am on 12-CURRENT, I don't have the 2.24 chromedriver, are you
> building from github?
>=20

You can install chromium-55.0.2883.87 from this GH repository.
Furthermore, it has the libc++ patch to fix build on CURRENT.

https://github.com/cpu82/chromium

Be sure that you build chromium with DRIVER option enabled.

I'm currently testing py-selenium with chromedriver 2.24

A simple test which works fine.

import os
from selenium import webdriver

from selenium.webdriver.common.keys import Keys
chromedriver =3D "/usr/local/bin/chromedriver"
os.environ["webdriver.chrome.driver"] =3D chromedriver
driver =3D webdriver.Chrome(chromedriver)
#driver =3D webdriver.Firefox()
driver.get("http://www.python.org")
print driver.title
assert "Python" in driver.title
=C2=A0
# submit query
elem =3D driver.find_element_by_name("q")
elem.send_keys("selenium")
elem.send_keys(Keys.RETURN)
=C2=A0
# get performance data
performance =3D driver.execute_script("return window.performance")
print performance
=C2=A0
driver.close()

> Best,
> Owen
>=20
> On Wed, Dec 28, 2016 at 4:26 AM, Carlos J. Puga Medina <cpm@freebsd.o
> rg> wrote:
> > Hi,
> > > Hi Owen,
> > >
> > > forwarding this to the mailing list.
> > >
> > > Ren=3DC3=3DA9
> > >
> > > ---------- Forwarded message ----------
> > > From: blubee blubeeme &lt;gurenchan@gmail.com&gt;
> > > Date: 2016-12-27 18:57 GMT+01:00
> > > Subject: https://github.com/gliaskos/freebsd-chromium
> > > To: r.c.ladan@gmail.com
> > >
> > >
> > > Hi rene0
> > >
> > > I'm trying to use chromium on FreeBSD 12-CURRENT but I keep
> > running
> > > into some bugs with the chromedriver.
> > >
> > > Anyways I tried to download the chromedriver from github but I
> > have
> > > troubles running becuse of ELF binary issues, I setup LD_ path
> > but
> > > then it seems that I have the 64 bit binary and chromedriver
> > needs
> > > the
> > > 32 bit binary or something like that.
> > >
> > > What I would like to ask is how do you port the chromedriver to
> > > FreeBSD?
> > >
> >=20
> > AFAIK, we're using bundled chromedriver. It was added [0] as a port
> > option.
> >=20
> > % chromedriver --version
> > ChromeDriver 2.24
> >=20
> > Can you provide more information related to the issue that you
> > currently have?
> >=20
> > According to ChromeDriver v2.24 notes [1]:
> >=20
> > ----------ChromeDriver v2.24 (2016-09-09)----------
> > Supports Chrome v52-54
> > Resolved issue 1497: GetLog fails when the current window is closed
> > [['OS-All', 'Pri-0']]
> > Resolved issue 1495: ChromeDriver crashes with "Check failed:
> > !page_load_strategy_.empty()" [['OS-All', 'Pri-0']]
> > Resolved issue 1463: SessionNotCreatedException: Runtime.evaluate
> > missing 'wasThrown' on Chrome 54+ [['OS-All', 'Pri-0']]
> > Resolved issue 1484: SendKeys of a Tab Key has no effect in Chrome
> > 53
> > [['OS-All', 'Pri-1']]
> > Resolved issue 1431: GetLog command does not work for Chrome 54+
> > [['OS-
> > All', 'Pri-1']]
> > Resolved issue 1411: sendKeys generates events that are missing
> > some
> > fields [['OS-All', 'Pri-1']]
> > Resolved issue 1451: Chrome 54+ session not created exception:
> > Runtime.executionContextCreated has invalid 'context' [['Pri-1']]
> > Resolved issue 984: Extend ChromeDriver capabilities to cover
> > network
> > throttling feature from Chrome DevTools [['OS-All', 'Pri-2']]
> > Resolved issue 1454: Net::ReadTimeout error on launching Canary v54
> > through RemoteWebDriver [[]]
> >=20
> >=20
> > [0]=C2=A0https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202368
> > [1]=C2=A0http://chromedriver.storage.googleapis.com/2.24/notes.txt
> >=20
> > > Best,
> > > Owen
> > >
> > >
> > > --=3D20
> > > https://rene-ladan.nl/
> >=20
> >=20
> > --
> > Carlos Jacobo Puga Medina <cpm@FreeBSD.org>
> > PGP fingerprint =3D C60E 9497 5302 793B CC2D=C2=A0 BB89 A1F3 5D66 E6D0
> > 5453
> >=20
--=20
Carlos Jacobo Puga Medina <cpm@FreeBSD.org>
PGP fingerprint =3D C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453

--=-AEbdcLf+k+qgmoXc8xJH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQGTBAABCgB9FiEExg6Ul1MCeTvMLbuJofNdZubQVFMFAlhjoDtfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM2
MEU5NDk3NTMwMjc5M0JDQzJEQkI4OUExRjM1RDY2RTZEMDU0NTMACgkQofNdZubQ
VFMH4gf7BjYU8K1kKTg6GuoRkgVRME9Eg0C4v1yqUpncoAmI5Tbxe9J0Wvfw9I12
elTwOU81gGN0YZ6V5BZ24JJoK3bivlrx2yBxUV19KS2GE2jYJ5hmgQLo9tBPyjUe
P1jzzkwMYFqcokGgDaGQ3LNgwIBdYxWEQnqD3JHzok74QPJP9LHgdXQaYJnade3G
1brs17UimHe3DJctomMnaNHrMgk9nPp/hdRmty/8IV5VZMktBnA7M1Jy0czMnj/h
MJXPKT0pQE7xXHLLYwuO5Ar1jnB1rkmLueX75X7Miibs23BkUO4mOy4I2IhCXoQA
vQ5jNm8grZMhh5/uYi9K0caeDLgxmg==
=rpdO
-----END PGP SIGNATURE-----

--=-AEbdcLf+k+qgmoXc8xJH--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1482924090.1402.12.camel>