0

I have to run this Selenium Python script on Android.

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By

from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument('--log-level=1')

s=Service("C:/Users/Python/chromedriver")
driver = webdriver.Chrome(service=s, options=chrome_options)
driver.get('https://www.amazon.it/dp/B08T769JQD')


title = driver.find_element(By.ID, "productTitle").text
print(title)

I tried Pydroid, but when i use "pip install selenium", i have this error.

enter image description here

I have the last pip version installed.

I tried to install Rust with "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh", but i have this error.

enter image description here

I saw that exists Selendroid, but how can i implement it with my script and Pydroid?

1 Answer 1

1

/storage/emulated/0 pip install --no-deps selenium

this will ignore other installation

working in Pydroid

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.