I try to locate a “LOGIN” and “PASSWORD” element using the find elemnets and frame node and I can’t. Does anyone know how to solve it?
Error when using frame node:
Execute failed: No frame element found by name or id l_username
attached workflow, thanks!
Flash_Knime.knwf (14.8 KB)
qqilihq
September 29, 2023, 4:44pm
2
Hi there,
my apologies - I just saw that I forgot to paste the link into my previous email to you
I’ll put it here as a starting point:
Hi;
do you have a sample workflow with selenium yada knime in a website with authentication? I was a beginner, so I could not figure it out.
I am very happy if you send a sample workflow.
I am trying to login to a web site with username and password, then transfer the data from the json table to the csv file.
login with both username and password, I need to transfer the csv to the next table with the option I chose.
A simple example that will provide insight is very useful.
Thank you
You need to use a Send Keys to send the file path to the <input type="file" class="hide" accept=".csv,text/csv"> element. But: Do not click on any ‘upload’ button etc., as this will open a file chooser dialog and from that point on you will no longer be able to control your browser through Selenium.
As stated above , you’ll need to enter the <iframe>, before you can address the <input> element.
See here:
[22]
This should do.
PS: Most of the Wait nodes in your workflow are actually not neces…
Hi,
I hope all is going well
I am trying to do some searches using this GMC website;
https://webcache.gmc-uk.org/gmclrmp_enu/start.swe
I use Chrome to navigate the page. Once it loads, I can use F12 on Chrome and be able to select the fields and get their names. In my case, I want to reach id = “gmcrefnumber” field. But I can’t see that in “Find Elements” node in Selenium.
This is what I am trying to do;
Open the website
Start the loop (I need to search multiple numbers)
Pu…
Best,
Philipp
2 Likes
Hello @qqilihq !
thanks for the feedback
I tried to use find elements before the node frame, but when inspecting the page, the code that returns is "//*[@id=“l_username”] " and the node returns missing values.
I saw in your examples that the inspect code starts with “//frame[@…” . I tried replacing it with this pattern, but without success. Is there another alternative?
Hi fragonidg,
does the page use a <frame>, or is it an <iframe>?
-Philipp
Sorry, I confused the flows. My last answer needed to switch pages with node java snippet. Solved.
In this forum’s stream, the site appears to not show an iframe. I tried name=“FrameGeral” , but without success.
hello
solved: when using the “general” frame (not ID or name) it expanded the fields that could be inspected in find elements. At each stage there was a different frame
1 Like
Great that you solved it, and thank you for describing your solution!
system
Closed
November 7, 2023, 7:30pm
8
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.