Skip to content
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

How does it work ? #6

Closed
jchesne opened this issue Dec 22, 2015 · 4 comments
Closed

How does it work ? #6

jchesne opened this issue Dec 22, 2015 · 4 comments

Comments

@jchesne
Copy link

jchesne commented Dec 22, 2015

Sorry for this idiot question but, i dont know how it works.

When i try to do :

Erik.visitURL(NSURL(string: "https://google.com")!) { document, error in
            // browse HTML element, click, submit form and more
            print(document)
            print(error)
}

the output is empty markup html :

Optional(<html><head></head><body></body></html>)
nil

I dont know if is it normal behaviour or anything else i have forgotten.

@phimage
Copy link
Owner

phimage commented Dec 22, 2015

There is no idiot question
On iOS target?

<html><head></head><body></body></html> is an empty page, a failure

did you use really this code with HTTPS : https://google.com. Without HTTPS I have same issue on iOS

@jchesne
Copy link
Author

jchesne commented Dec 22, 2015

Yes i am on IOS, i use HTTPS, strange bug.

@phimage
Copy link
Owner

phimage commented Dec 22, 2015

Did you use CocoaPod? I just updated to 1.0.3
Or master code?

There is a test app now, TestErik into ErikAppTest folder, if you clone the repository
( https://github.com/phimage/Erik/tree/master/ErikAppTest )
The demo open into a visible webview https://google.com.

I am on Yosemite, never tested on El Capitan

@jchesne
Copy link
Author

jchesne commented Dec 22, 2015

YAY ! That's work. And yes i use CocoaPod, thanks a lot, now i can begin to play with your library.

@phimage phimage closed this as completed Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants