I need your help when clicking on the right edge of the split button (see link for buttons and HTML code)
There are 2 buttons on the screen, and I want to click on the status button (second button) in the right edge.
Problem + Html code:
http://tinypic.com/r/2nbejvp/8
I tried the code below (didn't work).
option 1:
SeleniumApi.driver.findElement(By.xpth("//*[@id='ext-gen51']"));
or
SeleniumApi.driver.findElement(By.id("ext-gen51));
option 2:
WebElement ele = SeleniumApi.driver.findElement(By.xpath("//*[@id='ext-gen51']"));
Actions build = new Actions(SeleniumApi.driver);
build.moveToElement(ele, (buttonwidth/2)+6, 0).click().build().perform();
option 3:
WebElement first = SeleniumApi.driver.findElement(By.id("ext-gen51"));
first.sendKeys(Keys.PAGE_DOWN);
option 4:
WebDriverWait wait = new WebDriverWait(SeleniumApi.driver,30);
By findBy = By.cssSelector("tbody.x-btn-icon-small-left td.x-btn-mr");
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(findBy));
element.click();
WebDriverWait wait = new WebDriverWait(SeleniumApi.driver,30);
By findBy = By.cssSelector("tbody.x-btn-icon-small-left em.x-btn-split");
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(findBy));
element.click();
option 5:
WebElement ele = SeleniumApi.driver.findElement(By.id("ext-gen51"));
ele.click();
Actions build = new Actions(SeleniumApi.driver);
build.moveToElement(ele, ele.getSize().getWidth()/2-5, 0).click().perform();
Notes:
page was genrate with extJS infrastructure
I have two split buttons, and I want to click on the second.
source
share