Skip to content

Commit

Permalink
Change selenium fork to mine
Browse files Browse the repository at this point in the history
To use the fix for crystal-loot/selenium.cr#30
  • Loading branch information
Dakad committed May 6, 2023
1 parent 7d229da commit ca89a57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ version: 1.2.0

authors:
- Bartek Wilczek <bwilczek@gmail.com>
- Dakad

dependencies:
selenium:
github: matthewmcgarvey/selenium.cr
github: dakad/selenium.cr
branch: main
# path: /mnt/Data/Workspace/lab/__forks/selenium.cr

crystal: 1.8.0

Expand Down
3 changes: 2 additions & 1 deletion src/webdriver_pump/component.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module WebdriverPump
# Arbitrary choice to always try to get the dynamic prop. value first
attr = element.property {{params[:attribute]}}
attr ||= element.attribute {{params[:attribute]}}
return attr
return attr.as String
{% end %}

{% if params[:class] %}
Expand All @@ -62,6 +62,7 @@ module WebdriverPump
# Arbitrary choice to always try to get the dynamic prop. value first
attr = element.property {{params[:attribute]}}
attr ||= element.attribute {{params[:attribute]}}
attr.as String
end
{% end %}

Expand Down

0 comments on commit ca89a57

Please sign in to comment.