Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
run: git fetch

- name: Check that changelog has been updated.
run: git diff --exit-code origin/${{ github.base_ref }} -- changelog.md && exit 1 || exit 0
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [1.0.1] - 2025-02-07

### Fixed

- Added check on whether the "Vis svar" button is actually shown

## [1.0.0] - 2024-10-03

- Initial release

[Unreleased]: https://github.com/itk-dev-rpa/eflyt-godkend-flyttedato/compare/1.0.0...HEAD
[1.0.1]: https://github.com/itk-dev-rpa/eflyt-godkend-flyttedato/releases/tag/1.0.1
[1.0.0]: https://github.com/itk-dev-rpa/eflyt-godkend-flyttedato/releases/tag/1.0.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "robot_framework"
version = "1.0.0"
version = "1.0.1"
authors = [
{ name="ITK Development", email="itk-rpa@mkb.aarhus.dk" },
]
Expand Down
6 changes: 5 additions & 1 deletion robot_framework/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def handle_case(browser: webdriver.Chrome) -> bool:
Whether the case was approved or not
"""
registered_date = browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_GridViewMovingPersons_ctl02_lnkDateCPR").text
browser.find_element(By.LINK_TEXT, "Vis svar").click()
vis_svar_element = browser.find_element(By.LINK_TEXT, "Vis svar")
if vis_svar_element:
vis_svar_element.click()
else:
return False
response_date = browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_moPersonTab_txtFradato").get_attribute("value")

selection_table = browser.find_element(By.ID, "ctl00_ContentPlaceHolder2_ptFanePerson_moPersonTab_rdoEDSLogivartResponseType")
Expand Down