Open davidk1 opened 2 years ago
I can not reproduce the issue. When I do:
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${CUSTOM NONE} ${None}
*** Test Cases ***
Example
Open Browser https://github.com/robotframework/SeleniumLibrary/issues/1744 Chrome service_log_path=${CUSTOM NONE}
Close All Browsers
The None
file is not created. But if service_log_path=None
then None
file is created, which is expected.
Are you sure that ${service_log_path}
does not contain string None?
Me and my friend have copy pasted your code into our Pycharm IDE.
In both cases log file named None has been created, see output.xml file below.
`<?xml version="1.0" encoding="UTF-8"?>
`
... mistakenly closed the issue, re-opening again.
Description: With Robot Framework > 4.x keyword Open browser (SeleniumLibrary) fails to correctly interpret parameter service_log_path and assigned value ${None}. With Robot Framework = 3.2.2 everything works fine.
Steps to reproduce the issue:
Variables ${service_log_path} ${None}
Keywords Open browser to ... ... ${browser index} Open Browser ${page_url} ${browser} remote_url=${REMOTE_URI} ... options=${browser_options} service_log_path=${service_log_path}
Expected behavior and actual behavior: By calling keyword "Open browser to" browser driver log should not be created however file with name None is created including its content (webdriver log).
Environment: robotframework = 4.1.1 robotframework-seleniumlibrary = 5.1.3 OS: Windows 10 Python 3.7.3
Answer from Tatu via google groups: In SeleniumLibrary 4 library started to relay with Robot Framework to do the argument type conversion and custom code that did handle the conversion was removed. That looks like a bug in somewhere, not totally sure where the bug is. To get things moving could you raise an issue to SeleniumLibrary issue tracker?