How can we get X-PATH from already open browser?


#1

Hello,

How can we get X-PATH value from already opened browser?
e.g:
I have created one html page and I am clicking on submit button.One popup window is opening. I want to get-XPATH from popup window.How can we get?
please suggest.It’s urgent


#2

Dear @arju_kumarbFZa,

Please see this guide - https://kb.workfusion.com/display/RPAe/Web#Web-xpathHowtoGetElementXPath

Thanks,

Dayana Aitash
WorkFusion Service Desk


#3

#4

#5

Hello Dayana,

Thanks for your reply.
But the link you have shared, I have already gone thorough it. Switch browser is not working for already opened browser.
Could you please let know how can we x-path value of already opened browser?
E.g.
Suppose I have opened google manually . Now I want get X-PATH of google search text box. How can we get ?


#6

@arju_kumarbFZa

Have you tried right-click element > Inspect > right click element code > copy > Copy XPath ?


#7

Hello azinchuk,

Yes . I am able to copy X-Path and pasting it into web element inside XPATH of target element as you can see in below screen shot, but while I am running script it’s not finding search field(means entering data into text box). I have opened google manually not from Recorder script using open browser action library.


#8

Any one could you please help on this?


#9

@arju_kumarbFZa - please share this recording here

or tell which website are you trying to open


#10

I have already opened google.co.in manually. Please find recording scriptTest_Browser.zip (1.0 KB)


#11

@arju_kumarbFZa
Switch to Browser can be used when you launch the browser with the Open Website action:
https://kb.workfusion.com/display/RPAe/Web#Web-SwitchtoBrowser

You can use the Window action, if the browser is launched already.


#12

Get more information regarding XPath in RPA Express here: