Checkbox popup/ hover obscures elements
First post so I hope you understand me and that I have selected the right category?
I am using Selenium/ Java in TestNG for automated tested of web based application.
I have an issue whereby I need to select multiple checkbox’s on the same form. This generally works well but on occasion dependant on the position of the ‘ticks’ in relation to each other, a tooltip/ hover message pops up and obscures 4 or 5 other box’s that may need to be ‘ticked’ next. There is no cancel or any other dialogue on the message.
I have tried various action procedures to move away and back to the element but to no avail as the box’s that are affected are just missed out completely and it continues without any error even though the speed of the checkbox ticking is very fast (I need that anyway) as there can be 1 to 20 rows to iterate through in the table, so I am suprised that the hover has time to popup?
Any help on avoiding the popup will be greatly appreciated
I’m not sure what you mean?
Currently I am iterating through Excel cells, rows/cols to find which checkbox needs to be ticked according to the Excel reference.
The code is currently working like this (sample) but with the popup getting in the way of some checkbox’s
String sRow = “5”;
String sCol = “10”;
Actions action = new Actions(driver);
WebElement element = driver.findElement(By.xpath(“//div[@class=’table-placeholder’]/table/tbody/tr[“+sRow+”]/td[“+sCol+”]/input”));
Ok not getting far with this
I would like to try using findElement(By.cssSelector to see if that helps, can anyone help me convert
Alan, Sorry for the late reply. The actual problem is that you are trying to mouse the mouse over the element. You can directly click on the element and avoid this. Here are two ways to do the same thing
Also, if you want to find the CSS path you can go to chrome developer mode. Or right click on the Chrome browser and click Inspect. Then in the HTML code of the element, simple right click and choose CSS path.