Selenium-On-Termux-Android icon indicating copy to clipboard operation
Selenium-On-Termux-Android copied to clipboard

Termux package notice

Open nacho00112 opened this issue 2 years ago • 42 comments

I want to inform you that i made a pull-request at https://github.com/termux-user-repository/tur/pull/388 in the https://github.com/termux-user-repository/tur with seledroid and has been accepted, seledroid is now installable with:

pkg install tur-repo
pkg install python-seledroid
install-seledroid-app

Also there's a dummy selenium i created based on seledroid, actually it raises ImportError since a bug but i guess it will be solved soon:

pkg install python-selenium-is-seledroid
>>> import selenium

nacho00112 avatar May 24 '23 15:05 nacho00112

Can you explain to me what you're trying to accomplish? In my opinion, Seledroid is a poorly designed project, so I created a new one (RHWebDriver). However, I don't think it's necessary anymore since most people now use the latest Android versions like 11 and 12, and wireless connectivity is readily available. With Selenium, everything can now be automated, and I've also created issues in undetected_chrome to request the compilation of Chromium for Android.

luanon404 avatar May 24 '23 16:05 luanon404

From the beginning, there were no easy tutorials available for installing Selenium, which is why I created Seledroid. However, now I have created a tutorial on how to install Selenium, and as a result, I have decided to close that project.

luanon404 avatar May 24 '23 16:05 luanon404

From the beginning, there were no easy tutorials available for installing Selenium, which is why I created Seledroid. However, now I have created a tutorial on how to install Selenium, and as a result, I have decided to close that project.

There is an important difference, with the original selenium you have to install another webdriver, with seledroid you can use the already installed chromium of your phone, that's why they accepted the package

nacho00112 avatar May 24 '23 17:05 nacho00112

but chromium can do the same thing

luanon404 avatar May 25 '23 01:05 luanon404

for now, they can enable adb without pc/laptop, they can use selenium with chromium apk

luanon404 avatar May 25 '23 01:05 luanon404

https://github.com/luanon404/Selenium-On-Termux-Android/assets/71830807/2e1b84e5-b27a-4364-ad6f-6951351e2814

luanon404 avatar May 25 '23 01:05 luanon404

but chromium can do the same thing

There's a size difference, seledroid is just an intermediary for the chrome's webdriver, chromium apk has another webdriver inside it, another thing i liked and it's important to keep in mind is that i can see the automation process and optionally hide it, this makes the debug process further easy, i doubt chromium apk can do that, your project is functionally perfect that's why i like it

nacho00112 avatar May 26 '23 13:05 nacho00112

no, my webdriver (chromium) and chromium do the same thing, onething different is chromium require adb, but my webdriver not, i can do that with chromium too, why i dont make? bcz i cant install ubuntu on my laptop, i can download chromium source for android, modify something, compile and it can use without adb

luanon404 avatar May 26 '23 16:05 luanon404

i cant continue because android have too many limit, i cant keep alive webview, it get killed by android system, i did research, but there is no good api for that

luanon404 avatar May 26 '23 16:05 luanon404

and why you pack it? you can easily install use pip install seledroid

luanon404 avatar May 26 '23 16:05 luanon404

reason why i made seledroid because i dont know how to install selenium, for now they can enable adb very ez, why not use selenium, that is big question

luanon404 avatar May 26 '23 17:05 luanon404

no, my webdriver (chromium) and chromium do the same thing, onething different is chromium require adb, but my webdriver not, i can do that with chromium too, why i dont make? bcz i cant install ubuntu on my laptop, i can download chromium source for android, modify something, compile and it can use without adb

wait, which chromium apk are you talking about?

nacho00112 avatar May 27 '23 01:05 nacho00112

and why you pack it? you can easily install use pip install seledroid

Easiest installation, because the apk, and additionally my dummy selenium

nacho00112 avatar May 27 '23 01:05 nacho00112

i cant continue because android have too many limit, i cant keep alive webview, it get killed by android system, i did research, but there is no good api for that

Is the same for the termux process itself so there's is not much difference

nacho00112 avatar May 27 '23 01:05 nacho00112

i stop it because they can use adb, why dont they use selenium? thats their goal from start, they dont know whats seledroid, but they know selenium, thats why they should use selenium instead of seledroid, also adb can use for appium which use to control app (it is better enough to use selenium instead of seledroid?)

luanon404 avatar May 27 '23 11:05 luanon404

i stop it because they can use adb, why dont they use selenium? thats their goal from start, they dont know whats seledroid, but they know selenium, thats why they should use selenium instead of seledroid, also adb can use for appium which use to control app (it is better enough to use selenium instead of seledroid?)

That's why i created the dummy selenium, i'm assuming you're talking about bromite chromium apk, it have another webdriver inside, also i doubt it can show the automation process like seledroid, and i forgot to say i didn't seen your video since a bug i have

nacho00112 avatar May 27 '23 13:05 nacho00112

i stop it because they can use adb, why dont they use selenium? thats their goal from start, they dont know whats seledroid, but they know selenium, thats why they should use selenium instead of seledroid, also adb can use for appium which use to control app (it is better enough to use selenium instead of seledroid?)

If adb works with the already installed webdriver and can show the automation process then i will consider deleting the termux package

nacho00112 avatar May 27 '23 13:05 nacho00112

XRecorder_25052023_080632.mp4

watch this, i use selenium with adb to control chromium (compile for android, its not my webdriver)

luanon404 avatar May 27 '23 15:05 luanon404

u can control chrome with your adb have permission (my oppo phone prevent adb to do that so i cant control chrome), but for chromium, i can, because it made for automatic tasks

luanon404 avatar May 27 '23 15:05 luanon404

My webdriver simply copies how selenium works, i have no plan to continue RHWebDriver (next version of seledroid) because there is not good api to do that.

luanon404 avatar May 27 '23 15:05 luanon404

if termux can install apk use adb or not, u can create termux package for that, but if you only install pip install seledroid, i think u should delete it

luanon404 avatar May 27 '23 15:05 luanon404

as i said on readme, image

luanon404 avatar May 27 '23 15:05 luanon404

i think you're misunderstanding about seledroid, if i'm wrong, i'm sorry

luanon404 avatar May 27 '23 15:05 luanon404

I know but i put it as package to automatically install seledroid-app since it's dependent of it

nacho00112 avatar May 28 '23 02:05 nacho00112

Then if you are talking about bromite chromium then i don't want to delete the seledroid package, chromium have another webdriver inside, there's no other explanation, his size is too high compared to seledroid chromium, that's why i suppose you are exposing the already installed webdriver in the phone via seledroid chromium

nacho00112 avatar May 28 '23 02:05 nacho00112

XRecorder_25052023_080632.mp4

watch this, i use selenium with adb to control chromium (compile for android, its not my webdriver)

It no loads for me, also it not let me to download, sorry

nacho00112 avatar May 28 '23 02:05 nacho00112

XRecorder_25052023_080632.mp4

watch this, i use selenium with adb to control chromium (compile for android, its not my webdriver)

It no loads for me, also it not let me to download, sorry

what did u download?

luanon404 avatar May 28 '23 05:05 luanon404

Then if you are talking about bromite chromium then i don't want to delete the seledroid package, chromium have another webdriver inside, there's no other explanation, his size is too high compared to seledroid chromium, that's why i suppose you are exposing the already installed webdriver in the phone via seledroid chromium

yes, big size = big support, small size = small support

luanon404 avatar May 28 '23 05:05 luanon404

seledroid cant use extensions, cant access iframe, cant multithread, ....

luanon404 avatar May 28 '23 05:05 luanon404

but image can

luanon404 avatar May 28 '23 05:05 luanon404