'How to log google search results in console using robot framework

I have tried a couple of approaches, I've been successfully able to launch the browser and search the term. I've tried using for loop but i think I'm missing something.



Solution 1:[1]

I am not sure what you are exactly looking for, but to log things from your google search results, you can do this:

${result}= Get text     xpath=//*[@id="search"]
Log to console  ${result}

Now you can refine this logger with providing an exact xpath of the element/link/text that you want to log with Robot Framework.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sujit Neb