Skip to content

Java: selenium.support.Color: IllegalArgumentException when executing getColor() #3304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Allenary opened this issue Dec 29, 2016 · 0 comments

Comments

@Allenary
Copy link

Meta -

OS: Wndows 7, 10

Selenium Version: 3.0.1

Browser: any

Browser Version:

Java:
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

Expected Behavior

Object of java.awt.Color is returned by method

Actual Behavior

java.lang.IllegalArgumentException: Color parameter outside of expected range: Red Green Blue

Steps to reproduce

https://gist.github.com/Allenary/f8ffe85a7196fdf025b5b4467893e1bf

org.openqa.selenium.support.Color colorSel = org.openqa.selenium.support.Color.fromString("rgba(119, 119, 119, 1)");
java.awt.Color colorAwt= colorSel.getColor();

@lock lock bot locked and limited conversation to collaborators Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant