-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError("'module' object is not callable") #951
Comments
ok so I managed to call sync_playwright.sync_playwright()
PyObject <playwright.sync_api._context_manager.PlaywrightContextManager object at 0x7fa2950dde20> but now I want to run sync_playwright.sync_playwright().chromium.launch() which says
do I need to read python code and manually call each and every method/object/module while wrapping it with PyCall.jl? |
This imports the sync_playwright = pyimport("playwright.sync_api").sync_playwright I guess. The analogue of the Python @pywith sync_playwright() as p begin
browser = p.chromium.launch()
page = browser.new_page()
page.goto("http://playwright.dev")
println(page.title())
browser.close()
end ? If you are still getting an issue with |
@stevengj so basically.
from terminal (in conda_jl environment). It worked downloaded Was I suppose to call I installed |
ok it worked 2nd time. Thanks a ton @stevengj
First time it gave me error:
|
looks like network error: |
I am new to PyCall. I'm trying to use
playwright python API
with PyCallso I basically tried
Now I want to achieve this:
but I get this error:
The text was updated successfully, but these errors were encountered: