Learn how to handle dynamic web tables in selenium webdriver. Following will be covered in this video: What is web table ? Different web table tags Real-time example of automating a web table
Пікірлер: 11
@kiransingh82392 жыл бұрын
excellent explanation,brother,thanks a lot
@QASCRIPT2 жыл бұрын
Glad you liked it
@reshmapn79413 жыл бұрын
Awesome Explanation sir Thank you
@QASCRIPT3 жыл бұрын
You're most welcome
@chukwuemekatasie51184 жыл бұрын
Hi, can you help me with an issue. I am using your exact method above, but clicking on the text instead of printing. However I keep getting a stale element reference error after clicking and taking me to the next page. Here is my code WebElement PositionTable = driver.findElement(By.xpath('//td[2]/table/tbody/tr/td/table')) List Rows = PositionTable.findElements(By.tagName('tr')) println('No. of rows: ' + Rows.size()) table: for (int i = 0; i < Rows.size(); i++) { List Cols = Rows.get(i).findElements(By.tagName('td')) for (int j = 0; j < Cols.size(); j++) { if (Cols.get(j).getText().equalsIgnoreCase(ExpectedPosition)) { Cols.get(j).findElement(By.tagName('a')).click() WebUI.delay(5) table: break } } }
@QASCRIPT4 жыл бұрын
For stale element reference exception, try using Fluent Wait or load the element again before performing any operation on it.
@emreyucel5838 Жыл бұрын
thanks a lot
@QASCRIPT Жыл бұрын
Welcome!
@kritishah16593 жыл бұрын
What is the difference between the Selenium and SelectorsHub?
@QASCRIPT3 жыл бұрын
Both are completely different. Selenium is an Automation tool and SelectorsHub is a XPath generator tool