Skip to content

Commit 7087793

Browse files
committed
use actual screenshot path
1 parent 54952db commit 7087793

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

anaconda-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ commands:
3434
env_spec: rfjl37
3535

3636
atest:win:
37-
windows: rm -rf _artifacts\test_output && python -m scripts.atest
37+
windows: rmdir /s /q _artifacts\test_output && python -m scripts.atest
3838
env_spec: win_rfjl37
3939

4040
clean:

src/JupyterLibrary/keywords/screenshots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ScreenshotKeywords(LibraryComponent):
1818
def capture_element_screenshot(self, locator, filename):
1919
el = self.find_element(locator)
2020
bbox = self.normalize_bounding_box({**el.location, **el.size})
21-
BuiltIn().run_keyword("Capture Page Screenshot", filename)
21+
filename = BuiltIn().run_keyword("Capture Page Screenshot", filename)
2222
self.crop_image(filename, **bbox)
2323

2424
def normalize_bounding_box(self, bbox):

0 commit comments

Comments
 (0)