Unable to click on a salesforce tag ::after which is an arrow dropdown

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to click on a salesforce tag ::after which is an arrow dropdown

SUMIT AGGARWAL

Unable to click on a salesforce tag :: after (.support-servicedesk-navigator .x-btn-mc em.x-btn-split:after) using webdriver


image


Need to click on arrow icon


image


I have tried action and css both but nothing worked:


1. WebElement switchLabel =driver.findElement(By.cssSelector(".x-btn-split::after"));
  ((JavascriptExecutor)driver)
          .executeScript("arguments[0].click();",switchLabel);*/


2. Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.cssSelector(".x-btn-split::after"))), 20,23).click().build().perform();  
    
3.  WebElement ele = driver.findElement(By.xpath("//*[@id='ext-gen80']"));
  Actions build = new Actions(driver);
  build.moveToElement(ele, 21, 23).click().build().perform();


CSS part of the UI:


image


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/abdc9409-7e8b-40d5-9f4c-0f65d326bab9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to click on a salesforce tag ::after which is an arrow dropdown

Afrina Alam
Any Breakthrough you got it !!

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8846244c-25cd-440f-8a71-b8b8dd0d4da7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to click on a salesforce tag ::after which is an arrow dropdown

SUMIT AGGARWAL
Yeah, We had got the solution for this, below is the code snippet we used to click on that tag:

Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.cssSelector(".x-btn-split")),248,25).doubleClick().build().perform();

248, 25 is the position/px of web element on page. You can relate it on the basis of your application.

Thanks,
Sumit

On Tuesday, March 13, 2018 at 8:53:59 PM UTC+5:30, Afrina Alam wrote:
Any Breakthrough you got it !!

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ebca4bbb-8d8a-4f90-a188-f10efc29277d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to click on a salesforce tag ::after which is an arrow dropdown

Nalin Perera
This worked with WebDriver, but not with the RemoteWebDriver (Selenium 3.12.0).  Ended up using keyboard shortcuts to invoke the Navigation Menu Dropdown.

String navigationMenuDropdownShortcutKeys = Keys.chord(Keys.ESCAPE, "v");

new Actions(driver)
 
.sendKeys(navigationMenuDropdownShortcutKeys)
 
.perform();


On Thursday, March 15, 2018 at 10:06:23 AM UTC-4, SUMIT AGGARWAL wrote:
Yeah, We had got the solution for this, below is the code snippet we used to click on that tag:

Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.cssSelector(".x-btn-split")),248,25).doubleClick().build().perform();

248, 25 is the position/px of web element on page. You can relate it on the basis of your application.

Thanks,
Sumit

On Tuesday, March 13, 2018 at 8:53:59 PM UTC+5:30, Afrina Alam wrote:
Any Breakthrough you got it !!

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/17f8ebe6-8c60-475d-bcf4-22ff7dd7af51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.