Shubhan Singh
Shubhan Singh
you can do this and extract the xpath yourself, because the xpath for each element is stored in a session variable called selector_map ``` session = await browser.get_session() state =...
> Earlier screenshot was taken when use_vision flag was true, but due to this [commit](https://github.com/browser-use/browser-use/commit/9638191e3b2f51f3f92da739704cfd2eea409480), it is being taken for all cases. I'll try to find a solution for the...
``` class elment_on_page(BaseModel): index: int xpath: Optional[str] = None @controller.action("Get XPath of element using index", param_model=elment_on_page) async def get_xpath_of_element(params: elment_on_page, browser: BrowserContext): session = await browser.get_session() state = session.cached_state if...
You can use the selector map to find the xpath of any index.
I am not familiar with selenium, but in browser use the only xpaths available to you are those in the selector map object. Because browser use only stores information about...
> It works. Would you test the git version? where can i find that version?
This command didn't work, it just ended up deleting everything
I did not get any errors, but upon installing thtere was only the buildomtree.js file in the library, nothing else. Is there some way to install it properly using pip...
yes, i checked in that location only
i cloned the repo into Lib/site-packages and ran `pip install .` , that worked for me. Thanks for the help.