Jump to content
UBot Underground

Recommended Posts

need some help with xpath

 

i want to use ExBrowser Wait For Element(wait for element1 or element2)

plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\']", "Appear", 30)
plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30)

so, i want to combinate both element in in one column

something like this:

plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\'] OR x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30)

ive tried to use with "|" and still without success

 

Can anyone tell me how can I solve this?

Link to post
Share on other sites

need some help with xpath

 

i want to use ExBrowser Wait For Element(wait for element1 or element2)

plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\']", "Appear", 30)
plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30)

so, i want to combinate both element in in one column

something like this:

plugin command("ExBrowser.dll", "ExBrowser Wait For Element", "x://input[@class=\'LinkContinue\'] OR x://span[contains(text(), \'Your registration could not be processed\')]", "Appear", 30)

ive tried to use with "|" and still without success

 

Can anyone tell me how can I solve this?

 

Hello.

 

This is covered in depth in my Xpath Video Tutorials:

http://www.bot-factory.com/xpath-video-tutorials/

 

You have to write an Xpath Expression with an OR condition. You can NOT combine two Xpath Strings the way you tried it.

 

The correct way would be something like:

//input[@class=LinkContinue' or @class='Whatever]

 

This will return true if both conditions are met and then ExBrowser wait for element will continue before the 30 seconds are over.

 

Regards

Dan

  • Like 1
Link to post
Share on other sites

Hello.

 

This is covered in depth in my Xpath Video Tutorials:

http://www.bot-factory.com/xpath-video-tutorials/

 

You have to write an Xpath Expression with an OR condition. You can NOT combine two Xpath Strings the way you tried it.

 

The correct way would be something like:

//input[@class=LinkContinue' or @class='Whatever]

 

This will return true if both conditions are met and then ExBrowser wait for element will continue before the 30 seconds are over.

 

Regards

Dan

thanks for your help

i understand your idea and will test it

 

and your video should be very helpful, will buy it in the nearest future

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...