I tried that @verma (with firefox), but it didn’t work with pdf files opened in the browser.
You can try Zotero and the plugin Zotfile for that, it has a highlight extraction feature that’s pretty useful. I’ve been using it with Obsidian and it’s working well so far.
https://www.zotero.org/
http://zotfile.com/