Jump to content
UBot Underground

Exbrowser Switch To Frame/iframe Command [Building Correct Xpath Ex]


Recommended Posts

Hello,

 

I am using exbrowser + xpath builder pro... and I can't seem to get the right expression to cleartextbox.

 

so I am wondering if the textbox area is on an iframe (went to check the source code) and it seems like it is on an iframe.

 

I saw that exbrowser have a command switch to frame/iframe, but I could not find a video or documentation on how to use it.

 

I had some help from TJ, to find all iframes of the page so I found 6 iframes... and i tried all of them:

 

x:(//iframe)[1] 

x:(//iframe)[2]

and etc...

 

let's just say i switched to the correct iframe..

 

how do I grab/create the correct expression that will CLEAR TEXT BOX on that iframe?

 

I am not even sure how to find an element inside that iframe...

Link to post
Share on other sites

Try this code .

 

1) Switch to ur required Frame
2) Use $Exbrowser Document Text to make sure you are in the correct iframe or use $Exbrowser Element Exist in an if then else condition
3) ExBrowser ClearTextBox Command To Clear the required Text Box

plugin command("ExBrowser.dll", "ExBrowser Switch to Frame / iFrame", "x:(//iframe)[1]")
if($plugin function("ExBrowser.dll", "$ExBrowser Element Exist", "x://input[@id=\"name\"]")) {
    then {
        plugin command("ExBrowser.dll", "ExBrowser ClearTextBox", "x://input[@id=\"name\"]")
    }
    else {
    }
}
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...