New answers tagged

1

Because the question mentions "search result by the query does not satisfy its requirement by position" , it looks like the test objective is to ensure that the right ranking / relevancy based sorting is in place on the search algorithm . To debug / drill down this further, I might ask more details on the query- was it just a simple text search on a single ...


1

What I am thinking is as following: driver = webdriver.Firefox() e = driver.find_element_by_xpath("//someXpath") location = e.location size = e.size print(location) print(size) If I can get the size and location for an element, given an element is symmetrical, I can calculate its boarders as well. As long as one element's boarder does not cross into ...


2

I think you are trying to detect if elements are overlapping. You will need some way in the clientside to tell you if two elements are colliding. I would try jQuery collision for this or some custom JavaScript code. Add or inject jQuery and jQuery collision to the web-app under test Use the Selenium javascriptExecutor to fire a collision detection on two ...


2

If this overlapped texts belongs to single element, lets say label, or text field. You can locate that element and use "webElement.Text.Contains("the text you want to validate");" method to validate your expected text. And if the overlapped texts belongs to different element, you can simply locate that specific element and validate the text of that element. ...


1

The choice of a browser depends on your goal. If you are testing GUI rendering and JavaScript execution you should always tests against those browser that your users/customers are using. So even if, for instance, Internet Explorer is slow and unhandy, it make sense to test against it, while if you don't find any bug with PhantomJS it does not mean much, ...



Top 50 recent answers are included