Giter VIP home page Giter VIP logo

seledroid's People

Contributors

luanon404 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

seledroid's Issues

# update 1.0.4

  • add set_proxy method
    example: driver.set_proxy("196.172.0.35", 80)

Cannot delete cookies

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?:)

WebDriverWait return bool value instead of element

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()

result:
Screenshot_20220526-221225_Termux~2

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.

Proxy

How can I set http or socks proxy?

# update 1.0.5

  • add seledroid.webdriver.support.ui.Select
  • add driver.click_java(x, y), element.click_java(), element.get_position(), element.set_attribute(), element.get_inner_html(), element.get_outer_html(), ...
  • remake all code, fix some not work method, ...

# update 1.0.8

  • get_local_storage() - dict
  • set_local_storage(key, value) - None
  • clear_local_storage() - None

bonus

  • get_recaptcha_v3_token() - ๐Ÿ˜€

# update 1.1.0

  • add pip_mode (picture in picture) on android 8 and up (this is terrible, only use when you want gui=True but only need small window)
    to use: webdriver.Chrome(gui=True, pip_mode=True)
  • fix gui=False service not found

How to stop?

What do i do if its arleady being hosted and i cannot stop it

How to set Desktop site in Chromium using seledroid

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.

# update 1.0.9

  • set_session_storage(key, value)
  • get_session_storage()
  • clear_session_storage()
  • set_local_storage(key, value)
  • get_local_storage()
  • clear_local_storage()

# update 1.0.7

  • fix WebDriverWait
  • add service
    => driver.Chrome(gui=False)

# update 1.0.1

  • fix WebDriverWait
  • add some style
  • add send_text, send_keys

you can use send_text to send text
and send_keys to send key event (example Keys.ENTER)

# update 1.0.6

  • add override_js_function(script_js)
  • remade all code
  • add lang custom
    => driver = webdriver.Chrome(gui=True, lang="vi")
  • i will upload gui=False later
  • i dont know, too many change

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.