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=817
> 
> 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.
> 
> just do this in a loop, if your loop is around 50 or more the bug
> always shows up. 
> 
> create a chrome webdriver
> 
> for index in range(10):
>     webdriver.get("http://google.com";)
>     sleep(2)
>     continue
> webdriver.quit()
> 
> I am on 12-CURRENT, I don't have the 2.24 chromedriver, are you
> building from github?
> 

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 = "/usr/local/bin/chromedriver"
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)
#driver = webdriver.Firefox()
driver.get("http://www.python.org";)
print driver.title
assert "Python" in driver.title
 
# submit query
elem = driver.find_element_by_name("q")
elem.send_keys("selenium")
elem.send_keys(Keys.RETURN)
 
# get performance data
performance = driver.execute_script("return window.performance")
print performance
 
driver.close()

> Best,
> Owen
> 
> 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=C3=A9
> > >
> > > ---------- Forwarded message ----------
> > > From: blubee blubeeme &lt;gurenc...@gmail.com&gt;
> > > Date: 2016-12-27 18:57 GMT+01:00
> > > Subject: https://github.com/gliaskos/freebsd-chromium
> > > To: r.c.la...@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?
> > >
> > 
> > AFAIK, we're using bundled chromedriver. It was added [0] as a port
> > option.
> > 
> > % chromedriver --version
> > ChromeDriver 2.24
> > 
> > Can you provide more information related to the issue that you
> > currently have?
> > 
> > According to ChromeDriver v2.24 notes [1]:
> > 
> > ----------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 [[]]
> > 
> > 
> > [0] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202368
> > [1] http://chromedriver.storage.googleapis.com/2.24/notes.txt
> > 
> > > Best,
> > > Owen
> > >
> > >
> > > --=20
> > > https://rene-ladan.nl/
> > 
> > 
> > --
> > Carlos Jacobo Puga Medina <c...@freebsd.org>
> > PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0
> > 5453
> > 
-- 
Carlos Jacobo Puga Medina <c...@freebsd.org>
PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to