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

Hide the firefox browser or virtual browser for window users..! #1

Open
ankitjain28may opened this issue Oct 30, 2016 · 20 comments
Open

Comments

@ankitjain28may
Copy link
Owner

Selenium opens Firefox browser for executing the commands given to it.. But I want that the browser will not open or it may open.. But it should be virtual so user would not see it..!

@ankode
Copy link

ankode commented Oct 30, 2016

i recommend using "mechanize" module.

@ankitjain28may
Copy link
Owner Author

Would u like to work on it @ankode

@suryatejreddy
Copy link

you can use pyvirtualdisplay, it will work for both windows and linux

@ankitjain28may
Copy link
Owner Author

Would u like to work on it

@suryatejreddy
Copy link

Yeah, the commit which i made before will work.

@ankitjain28may
Copy link
Owner Author

Send pr on contribution branch

@suryatejreddy
Copy link

install pip on windows (http://arunrocks.com/guide-to-install-python-or-pip-on-windows/)
then from terminal type , pip install xvfbwrapper

@ankitjain28may
Copy link
Owner Author

If i have made this script so obviously i hve pip installed and i hve checked it after installing xvfbwrapper but still its not working try to check it on your system(Wndows)

@dibyasonu
Copy link

Is this issue still open?? I hope to work on it if it is still open

@ankitjain28may
Copy link
Owner Author

Yes, this issue is still open.. You can work on this issue, you can use phantomjs browser

@dibyasonu
Copy link

Its not working with phantomjs , the login.click() command is not working after using phantomjs. Should i send a PR, so that u can tell what's the problem and i can try to fix.

@ankitjain28may
Copy link
Owner Author

No, I will clone your repo and check it out.

@dibyasonu
Copy link

k..let me upload it..

@ankitjain28may
Copy link
Owner Author

Sure

@dibyasonu
Copy link

Done...created it under a branch as it requires further tweaks
fb_using_python

Please do tell me how to fix it. I am a beginner in python as well as opensource contribution and hope to learn as much as possible. I am partcipating in the hacktoberfest too, so hoping to make a succesful pull request to this project

@ankitjain28may
Copy link
Owner Author

@dibyasonu Are you able to login using firefox ?

@ankitjain28may
Copy link
Owner Author

login.click() isn't working because facebook has changed the id of the login button

login = driver.find_element_by_css_selector("#u_0_5")
    login.click()

Try with this code or you can get it using developer tools of the browser.

@dibyasonu
Copy link

dibyasonu commented Oct 22, 2017

i have fixed the fb.py and sent a PR. I have mentioned about the changes in the PR comments, please tell me if something else is needed.
And i think the README.md needs to be changed too, as phantomjs browser is now being used in the project. So if u want i can create a PR for it. Please reply soon.

@ankitjain28may
Copy link
Owner Author

Ya sure make a new PR for readme.. N i will check changes soon..

@dibyasonu
Copy link

Did it work....?? I have already sent the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants