when I run the robot script in pycharm getting below error
ValueError: Argument ‘url’ got value ‘https://www.google.com’ that cannot be converted to None.
@vijay1980 I don’t think Selenium2Library is supported anymore. You should instead use SeleniumLibrary
I don’t know why you used Open_browser
instead of Open Browser
which is the correct keyword.
Try with the correct name.
The name shouldn’t be an issue here.
As far as I am aware Robotframework is simply making underscores in the python method into spaces. So calling Open Browser
or open_browser
or seleniumLibrary.open_browser
should all get you to the same place.
I only mentioned because the error is suggesting expecting None for url, and that makes me think the user is using a different keyword.
I’m experiencing this same issue now. I was working along just fine and then had a test where I was going to try the DataDriver Library. So, in my PyCharm, I added that Library to my interpreter. Then I decided to go a different route. Suddenly, that test would no longer even recognize my URL. I ran a completely different test case that had nothing to do with this one and that wouldn’t run either.
I then created a very simple, new test, to just “Open Browser” and go to Google. That one wouldn’t execute at all. I am now completely blocked from running ANY of my tests because of this issue. The only actions I took were to install the DataDriver Library. I’ve since uninstalled it, deleted the affected test case and still. Nothing. So frustrating. Has anybody heard of this happening before?
Try to pip robotframework==3.2
Why would you force installation of a Robot Framework version that is years old instead of the most recent release?