Locals did not upload custom thumbnail #8

Closed
opened 5 months ago by jamesapyrich · 4 comments
Collaborator

As it says on the tin.

As it says on the tin.
yuriy commented 4 months ago
Owner
  • Generate Xpath for Thumbnail file input element using parent element.

id of input element is randomly? generated on page load.

image

- [ ] Generate Xpath for Thumbnail file input element using parent element. id of input element is randomly? generated on page load. ![image](/attachments/6fdca7f5-df47-4d62-843e-225db98bd44a)
179 KiB
Poster
Collaborator

If it's the only file input on the screen, you can do //input[@type="file"]. Perhaps you can scope it within div[class="uploadfile-wrapper"] or div[class="custom-thumb-uploader"] if there are others.

If it's the only file `input` on the screen, you can do `//input[@type="file"]`. Perhaps you can scope it within `div[class="uploadfile-wrapper"]` or `div[class="custom-thumb-uploader"]` if there are others.
Poster
Collaborator

It's been a while since I've done XPath, but something like this should (hopefully) work:
//div[@class="custom-thumb-uploader"]//input[@type="file"]

https://devhints.io/xpath

It's been a while since I've done XPath, but something like this should (hopefully) work: `//div[@class="custom-thumb-uploader"]//input[@type="file"]` https://devhints.io/xpath
yuriy commented 4 months ago
Owner

It's been a while since I've done XPath, but something like this should (hopefully) work:
//div[@class="custom-thumb-uploader"]//input[@type="file"]

https://devhints.io/xpath

I tried this and a couple other ways, but sadly could not get it to work.
I was able to figure out a way to generate the Xpath using another element above it.

I need to spend a bit of time and expand my knowledge of xpaths, thanks for the devgints website

> It's been a while since I've done XPath, but something like this should (hopefully) work: > `//div[@class="custom-thumb-uploader"]//input[@type="file"]` > > https://devhints.io/xpath I tried this and a couple other ways, but sadly could not get it to work. I was able to figure out a way to generate the Xpath using another element above it. I need to spend a bit of time and expand my knowledge of xpaths, thanks for the devgints website
yuriy closed this issue 4 months ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: yuriy/livestream-scheduler#8
Loading…
There is no content yet.