I am trying to use Selenium to click the :: element after a pseudo element. I understand that this cannot be done through WebDriver directly, but it seems that it cannot find a way to do this with Javascript.
Here is what the DOM looks like:
<em class="x-btn-split" unselectable="on" id="ext-gen161">
<button type="button" id="ext-gen33" class=" x-btn-text">
<div class="mruIcon"></div>
<span>Accounts</span>
</button>
::after
</em>
This is what the element above looks like. The left side of the object is the 'button' element, and the: after element is the right side with the arrow, which when clicked drops out when the menu appears. Since you can see that the right side has no identifiers at all, and this is partly what makes this difficult.

I saw these two links in stackoverflow and tried to combine the answers to form my solution, but to no avail.
Selenium WebDriver JavaScript
Selenium WebDriver JavaScript
:
string script = "return window.getComputedStyle(document.querySelector('#ext-gen33'),':before')";
IJavaScriptExecutor js = (IJavaScriptExecutor) Session.Driver;
js.ExecuteScript("arguments[0].click(); ", script);
:
System.InvalidOperationException: 'unknown error: arguments[0].click is not a function
(Session info: chrome=59.0.3071.115)
(Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 6.1.7601 SP1 x86_64)'
Actions Selenium, , . , - , , , , , . , ?
Actions build = new Actions(Session.Driver);
build.MoveToElement(FindElement(By.Id("ext-gen33"))).MoveByOffset(235, 15).Click().Build().Perform();
, -, , , .
Salesforce ( ) #, .
- ?