Find elements by class name

This issue has been created since 2022-04-25.

Hey :)

Iv'e tried to implement element finding by class name and saw that selene doesn't support that natively bys.py
There is any reason to this ? if not, can I add the implementation myself ?

Thanks!
Amit.

yashaka wrote this answer on 2022-04-25
yashaka wrote this answer on 2022-04-25

Hm...

yet, I see, that we already have

def id(attribute_value):
    return By.ID, attribute_value

at by.py :D

So... Either we should deprecate the current by.id or add by.class_name for consistency...

Ok, @amitaz3354, go for it, add by.class_name and send pull request! Thank you for raising the topic!

amitaz3354 wrote this answer on 2022-04-26

Cool, let's go to work

amitaz3354 wrote this answer on 2022-04-26

PR: #411

More Details About Repo
Owner Name yashaka
Repo Name selene
Full Name yashaka/selene
Language Python
Created Date 2015-04-17
Updated Date 2022-09-27
Star Count 562
Watcher Count 55
Fork Count 124
Issue Count 101

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
JSONDecodeError: requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 2 2022-07-27 2022-08-21
请问notion增改文章后,notion-next什么时候同步呢?同步间隔是多长? 0 2022-06-27 2022-09-12
LNURLp does not check the return value of webhook call 4 2022-01-11 2022-07-17
Camera preview not visible, showing white screen instead 0 2022-01-09 2022-09-28
add documentation for dns challenge 0 2022-06-30 2022-09-16
numerous errors when building against ruby-3.0 1 2021-04-15 2022-08-20
An in-range update of marked is breaking the build 🚨 2 2020-03-18 2022-08-28
The Python interpreter could not find the elpy module. 1 2021-01-20 2022-09-14
Problem with using velocity on multiple VDS 1 2022-05-26 2022-09-22
Log in not work 1 2021-03-06 2022-01-22
Apply Unique Column Constrain 2 2018-06-24 2021-12-30
Cosmetic/minor issues in comments and formal specifications 0 2022-06-20 2022-09-27
Add missing bnonce prose 3 2022-06-16 2022-07-31
Cryptic names in Objects pane 6 2022-04-01 2022-08-07
The set-keymap function is not working as intended 1 2022-04-20 2022-09-19
edts-plugin-disabled-plugins default value and type mismatch 2 2021-10-26 2022-09-20
Day of a year 3 2017-10-16 2022-01-20
[fodo] update vendor member page for Yotascale to add "Certified Platform" label 0 2021-09-16 2022-08-31
Want to add an interface for CompositeTransform to get the composite result (single Transform) 3 2022-06-07 2022-09-10
Is this repo still active? 0 2021-01-20 2022-09-17
Decide when is appropriate for a module to have an includes directory 0 2015-01-07 2022-08-06
TypeError: Cannot read property 'toLowerCase' of undefined 1 2022-01-26 2022-09-22
dune should complain if it find "deadcode" in the env stanza 1 2022-06-15 2022-09-01
Gauge overflow 1 2017-04-25 2021-10-17
Opensnitch UI is freezing when internet connection is blocked (e.g. by Mullvad VPN) 20 2021-12-14 2022-09-18
Authorization example using directive 0 2022-01-31 2022-08-23
Task: GCC 12 support 0 2022-01-22 2022-09-16
missing `phpmd.phar` for 2.10.2 release 2 2021-07-30 2022-09-27
RAD_PER_DEG and DEG_PER_RAD duplicate other constants 0 2022-05-26 2022-09-13
Replace: SukanRTM 0 2021-12-22 2021-12-26
Audio stops being shared by iOS device: audio codec shows as null 0 2021-11-05 2022-09-08
Can't retrieve a subscription invoice for an item with 0 quantity 3 2021-10-27 2022-09-19
filetypedetection is a little weird with comments 10 2021-05-10 2022-09-20
Remove jedi pinning 0 2021-01-09 2021-10-17
x/vulndb: potential Go vuln in "Go Standard Library (package not identified)": CVE-2019-6486 1 2022-01-07 2022-09-12
Update to latest bpftool 0 2022-07-13 2022-09-07
Missing "module" script path in Custom Elements output target 2 2022-05-24 2022-09-22
Bugtracker should check for existing username before allowing the user to register. 0 2021-06-01 2022-09-24
想输入一个句子,能通过模型用语义相似度找到库中最相似的20个句子 1 2022-06-06 2022-09-19
[ENHANCEMENT] CLI throws error when the input flags do not match NNFusion's flags 0 2021-12-20 2022-09-22
[BUG] The build script of the generated code does not copy Constant/ folder to the build path 0 2021-11-22 2022-09-23
Ghost Chapters (download-sections + embed-chapters = softly corrupted file), and wastefully download 3 2022-06-26 2022-09-19
Can't fetch bilibili channel name 2 2022-06-26 2022-09-20
Application links are not clickable when the 'uncaught:exception' error is identified 0 2022-04-27 2022-08-03
Add support to release linux aarch64 wheels 6 2021-10-28 2022-09-21
Hotkey Mapper Tool accessibility improvements 4 2021-12-15 2022-09-21
Make declaring root module optional for single module projects 1 2020-07-08 2022-09-13
Show a switch chain request prompt for all switch chain requests 0 2022-08-16 2022-08-17
socket accept failed 2 2022-01-20 2022-07-15
Array size in struct or global scope not captured? 0 2021-05-17 2022-09-17