Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command getLocation throwing Null Pointer Exception [Safari 12] #6975

Closed
krish63 opened this issue Feb 27, 2019 · 2 comments
Closed

Command getLocation throwing Null Pointer Exception [Safari 12] #6975

krish63 opened this issue Feb 27, 2019 · 2 comments

Comments

@krish63
Copy link

krish63 commented Feb 27, 2019

馃悰 Bug Report

While executing the getLocation command on Safari 12 OS X Mojave, java.lang.NullPointerException is thrown.

Exception-

Exception in thread "main" java.lang.NullPointerException
	at org.openqa.selenium.remote.RemoteWebElement.getLocation(RemoteWebElement.java:331)

To Reproduce

  1. Create Safari driver instance
  2. Open URL
  3. Find an element
  4. Execute getLocation command

Expected behavior

Point object shold be returned (for step 4) and Null pointer exception should not thrown.

Test script or set of commands reproducing this issue

GIST => Safari_getLocation_Test.java

Environment

OS: MacOS Mojave 10.14.3 (Darwin 18.2.0)
Browser: Safari
Browser version: 12.0.3 (14606.4.5)
Java Verison: Java v1.8
Selenium-Java Binding Version: Java 3.14

@riticar
Copy link

riticar commented Mar 6, 2019

I had the same issue and now I use Safari Technology Preview. Its fixed in that as per the comment in the link below
#6637 (comment)

@barancev
Copy link
Member

Duplicate of #6637

@barancev barancev marked this as a duplicate of #6637 Mar 29, 2019
@lock lock bot locked and limited conversation to collaborators Aug 14, 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

3 participants