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)
Put GMC number in GMC reference number field
Search results
Get Results (Names, Status, Specialist Register entry date, etc)
Search again (There is a link on top left of the page to go back to search again)
End loop
Provide the results in a table format
Once I accomplish above, I am planing to create similar flow for name search this time.
Unfortunately; due to GDPR and company policy, I canât provide any license numbers here but you may search some common names (James, Eric, etc) and get some license numbers from the website if you need it.
mentioned <input> element is within a <frame>, so youâll explicitly need to switch to that frame. As this is a common question and Iâm feeling lazy currently, I just link to an existing thread which gives the details:
I really canât figure out.
It seems as you suggested; there are more frames.
class=âtablebodyâ has the fields that I need. But when I put that into Find Elements, it gets me an empty table.
I think one of either âFind Elementsâ queries was wrong (didnât have time for a thorough check, so Iâm just giving the solution ⌠which is probably not good didactics, bear with me ). I configured them as follows:
//frame[@name='_sweclient']
//frame[@name='_sweview']
(instead of the auto-generated selectors I looked at the DOM structure and used the name attribute as selector). This seems to work for me. Hereâs the flow:
Thanks Philipp.
Submit node didnât work. So I put another Find Elements and find the button this time and then used Click. Now I am able to get the results.
Thanks for the help.