Hello there;
I do not understand where I am doing wrong. I want to print the username and password for login but it does not. XPath is wrong, if you are a help
Could you send me a sample workflow. I’ve done different experiments for the same url, but I’m a beginner and I can not figure out the exact way. A sample flow will help me a lot.
Hello there;
I had a little bit of work and I had a chance to try new. Unfortunately, the password and username are not entered and only remain on the login screen.
How many times have I tried it? I do not understand where the problem is
We can provide password and username to google chorme page which comes to us with automatic form filling. ? Would not it be easier to login. Do we simplify the work steps?
I do not really understand this one. Can you please go in detail? What do you mean with “are not entered and only remain on the login screen”? With the version of the WF posted above, your browser window should show the following after execution:
It should also enter YOUR_PASSWORD in the “Password” field, but this will be cleared when clicking the submit button. Now you should simply be able to update the flow variables with your valid credentials: Right click on the WF in the “KNIME Explorer”, open menu “Workflow variable administration”):
With correct credentials, the login should work. (I didn’t try this, b/c I obviously have no account on the mentioned site)
No. Auto-completion will not be available in the Chrome instance launched via Selenium.
I think I have solved the problem of not working but it does not work in the meantime waiting on the password input screen and not stopping. Sometimes it does not work sometimes (it is strange, I do not understand that website is related to the website)
The procedure is quite similar to the one with the login …:
Locate the input field with a Find Elements node
Enter text into the field with a Send Keys node
In case the website requires that you select an entry from the menu, use a Find Elements node again to locate the corresponding menu entry
Click on the entry using the Click node
As this is probably involves asynchronous logic, you’ll probably have to use the Find Element’s “Wait” functionality, or add an explicit Wait node in between.
Thank you very much for all your support. Wait for the solution by adding the node. but compared to an unpredictable change.
XPath is now the correct path for the tentative information, but because the tentative numbers are constantly changing, XPath is now the correct path, but the tender-dialog-43 … in the XPath is changed
Sample
// * [@ id = “tender-dialog-436349804”] / div [2] / div / div [1] / p / a
// * [@ id = “tender-dialog-436209111”] / div [2] / div / div [1] / p / a
I’d recommend to use XPath’s contains function to select the dialog. This might do the trick:
//*[contains(@id, 'tender-dialog-')]
Above is a very simplified solution, and might also match too much, depending on the page structure. For more sophisticated strategies, have a look at this Stack Overflow question, e.g.