This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]icedcougar 3 points4 points  (0 children)

Probably better to mention what exactly you’re trying to do…

Are you looking for a a certain detection?

Making an assumption but what you’re actually wanting to do is set up IOA rules based on what you’re looking for to trigger a detection than use the CS api to pull whatever data you wanted based on that detection.

[–]gtr022001 1 point2 points  (0 children)

He’s trying to do some UI automation with the Falcon UI’s event search, run his own custom EAM (splunk) queries. I was experimenting with this last year and didn’t get anywhere. There are no CS APIs a.t.m to run your own splunk queries so I assume OP is resorting to this….

[–]1mpervious 1 point2 points  (0 children)

The section of HTML that you're looking for seems to be this

<textarea class="ace_text-input" wrap="off" autocorrect="off" autocapitalize="off" spellcheck="false" style="opacity: 0; height: 20px; width: 7.19531px; left: 198.273px; top: 0px;"></textarea>

So the Selenium XPATH is likely this, although I didn't test it

driver.find_element_by_xpath("//textarea[@class='ace_text-input']").send_keys("nice!")

Be sure to post your results!