Skip to content

Commit

Permalink
handle exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pancht committed Mar 5, 2024
1 parent 530ba1d commit c1df2d1
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 54 deletions.
96 changes: 48 additions & 48 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,79 +327,79 @@ Features
- Percent
- Download Count
* - US
- 41.32%
- 19,319
- 41.43%
- 19,609
* - CN
- 13.04%
- 6,094
- 12.95%
- 6,129
* - RU
- 5.35%
- 2,502
- 5.30%
- 2,510
* - SG
- 5.16%
- 2,410
- 5.15%
- 2,436
* - DE
- 4.03%
- 1,885
- 3.99%
- 1,889
* - HK
- 3.89%
- 1,817
- 3.84%
- 1,819
* - JP
- 3.14%
- 1,466
- 3.19%
- 1,512
* - FR
- 3.04%
- 1,419
- 3.02%
- 1,428
* - CA
- 2.79%
- 1,302
- 2.85%
- 1,350
* - KR
- 2.71%
- 1,269
- 2.76%
- 1,307
* - AU
- 1.87%
- 873
* - GB
- 1.85%
- 866
- 876
* - GB
- 1.83%
- 867
* - NO
- 1.61%
- 753
- 1.68%
- 797
* - IN
- 1.57%
- 734
- 744
* - SE
- 1.30%
- 606
- 614
* - HR
- 0.84%
- 392
- 0.83%
- 394
* - TH
- 0.81%
- 380
- 385
* - TW
- 0.77%
- 0.76%
- 362
* - DK
- 0.70%
- 0.69%
- 325
* - IE
- 0.67%
- 315
- 317
* - ES
- 0.56%
- 0.55%
- 262
* - IL
- 0.54%
- 0.53%
- 253
* - NL
- 0.52%
- 0.51%
- 241
* - CH
- 0.43%
- 200
- 202
* - AE
- 0.37%
- 0.36%
- 171
* - FI
- 0.19%
Expand All @@ -410,10 +410,10 @@ Features
* - PL
- 0.13%
- 61
* - TR
* - CW
- 0.09%
- 44
* - CW
* - TR
- 0.09%
- 44
* - OM
Expand All @@ -434,16 +434,16 @@ Features
* - UA
- 0.02%
- 8
* - CY
* - GF
- 0.01%
- 6
* - GF
* - CY
- 0.01%
- 6
* - AR
* - EE
- 0.01%
- 3
* - EE
* - AR
- 0.01%
- 3
* - SK
Expand All @@ -452,13 +452,13 @@ Features
* - PT
- 0.00%
- 1
* - MX
* - RS
- 0.00%
- 1
* - RS
* - MX
- 0.00%
- 1
* - **Total**
- **100.00%**
- **46,749**
- **47,332**

File renamed without changes.
53 changes: 53 additions & 0 deletions key/download-stats/2024_03_05_7993.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Served from cache: False
Data processed: 9.19 GiB
Data billed: 9.19 GiB
Estimated cost: $0.05

| country | percent | download_count |
| ------- | ------- | -------------- |
| US | 41.43% | 19,609 |
| CN | 12.95% | 6,129 |
| RU | 5.30% | 2,510 |
| SG | 5.15% | 2,436 |
| DE | 3.99% | 1,889 |
| HK | 3.84% | 1,819 |
| JP | 3.19% | 1,512 |
| FR | 3.02% | 1,428 |
| CA | 2.85% | 1,350 |
| KR | 2.76% | 1,307 |
| AU | 1.85% | 876 |
| GB | 1.83% | 867 |
| NO | 1.68% | 797 |
| IN | 1.57% | 744 |
| SE | 1.30% | 614 |
| HR | 0.83% | 394 |
| TH | 0.81% | 385 |
| TW | 0.76% | 362 |
| DK | 0.69% | 325 |
| IE | 0.67% | 317 |
| ES | 0.55% | 262 |
| IL | 0.53% | 253 |
| NL | 0.51% | 241 |
| CH | 0.43% | 202 |
| AE | 0.36% | 171 |
| FI | 0.19% | 90 |
| ZA | 0.19% | 89 |
| PL | 0.13% | 61 |
| CW | 0.09% | 44 |
| TR | 0.09% | 44 |
| OM | 0.09% | 42 |
| IS | 0.09% | 42 |
| CZ | 0.09% | 42 |
| BR | 0.05% | 24 |
| RO | 0.05% | 24 |
| UA | 0.02% | 8 |
| GF | 0.01% | 6 |
| CY | 0.01% | 6 |
| EE | 0.01% | 3 |
| AR | 0.01% | 3 |
| SK | 0.00% | 2 |
| PT | 0.00% | 1 |
| RS | 0.00% | 1 |
| MX | 0.00% | 1 |
| Total | | 47,332 |

2 changes: 1 addition & 1 deletion nrobo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@email: erpanchdev@gmail.com
"""

__version__ = '2024.25.0'
__version__ = '2024.25.1'

# install rich library
import os
Expand Down
12 changes: 10 additions & 2 deletions nrobo/selenese/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,11 +913,19 @@ def is_selected(self, by=By.ID, value: Optional[str] = None) -> bool:
Can be used to check if a checkbox or radio button is selected.
"""
return self.find_element(by, value).is_selected()

try:
return self.find_element(by, value).is_selected()
except Exception as e:
return False

def is_enabled(self, by=By.ID, value: Optional[str] = None) -> bool:
"""Returns whether the element is enabled."""
return self.find_element(by, value).is_enabled()

try:
return self.find_element(by, value).is_enabled()
except Exception as e:
return False

def send_keys(self, by=By.ID, value: Optional[str] = None, *text) -> None:
"""Simulates typing into the element.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
# Project details
[project]
name = "nrobo"
version = "2024.25.0"
version = "2024.25.1"
authors = [{name="Panchdev Singh Chauhan", email="erpanchdev@gmail.com"}]
maintainers = [{name="Panchdev Singh Chauhan", email="erpanchdev@gmail.com"}]
description = "Powerful! Yet, Easy to USE! Automated Testing Framework"
Expand Down
2 changes: 1 addition & 1 deletion versions/prod.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 2024.25.0
version: 2024.25.1
2 changes: 1 addition & 1 deletion versions/test.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 2024.25.0
version: 2024.25.1

0 comments on commit c1df2d1

Please sign in to comment.