luanon404 / seledroid Goto Github PK
View Code? Open in Web Editor NEWPython library to control android webdriver.
Python library to control android webdriver.
driver.set_proxy("196.172.0.35", 80)
This library is very good, I really like it, but I'm having some problems using it.
I have Python code like this.
>>> from seledroid import webdriver
>>> web = webdriver.Chrome()
>>> web.get("https://mobile.facebook.com")
So far there has been no problem.
Then I try to fetch cookies on webdriver
>>> web.get_cookies()
'datr=xxxxxxx; sb=xxxxxxxxx; m_pixel_ratio=2; wd=360x679; fr=xxxxxxxxxxxx'
But when I try to delete all cookies in webdriver, it doesn't work at all
>>> web.clear_cookies()
>>> web.get_cookies()
'datr=xxxxxxx; sb=xxxxxxxxx; m_pixel_ratio=2; wd=360x679; fr=xxxxxxxxxxxx'
Can you help me?:)
hello, In the latest version of seledroid, "WebDriverWait" function with "element_to_be_clickable" return bool value instead of the web element.
code:
login = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "/html/body/div[1]/div/div[1]/div/div[1]/div[2]/div[3]/div[3]/div/div/div[2]/div[2]/div[2]/div[2]/div[2]/div[1]/a")))
login.click()
with a bit of debugging i have found a fix by changing
def is_disabled(self):
return self.execute(self.command, request=Command.IS_DISABLED, element_path=self.element_path, by=self.by, value=self.value).result
to
def is_disabled(self):
return self.execute(self.command, request=Command.IS_DISABLED, element_path=self.element_path, by=self.by, value=self.value).result or False
in class "WebElement" in remote/web_element.py
like how it was in previous version.
i don't know how it affects overall code but it seem to fix the problem.
How can I set http or socks proxy?
webdriver.Chrome(gui=True, pip_mode=True)
What do i do if its arleady being hosted and i cannot stop it
Image: https://i.ibb.co/Jq1KVxj/Screenshot-20220628-150528-Termux.jpg
the whole process was done correctly!
I've already installed this package several times and it never happened.
gui=True: ok, working
gui=False: Returns this error
Hi, I have a qurey, how to set Chromium as descktop site using seledroid webdriver? Recently I access a website that will redirect to download app not to display target webpage I want to go to. If switch to the Desktop site in Chrome browser it is not the issue. Thanks.
driver.Chrome(gui=False)
you can use send_text to send text
and send_keys to send key event (example Keys.ENTER)
driver = webdriver.Chrome(gui=True, lang="vi")
I will fix in 1-2 days, on that time please dont use
Hi, can you please implement "invisibility_of_element_located" method from "expected_conditions". it is really useful to know if something is covering an element.
Thanks
HOW TO PUT A USER AGENT?
can you implement "Select" method from selenium.webdriver.support.ui ?
btw thanks for awesome work on this project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.