Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- js= """function button_visible( row ){
- var opacity = row.style.opacity;
- if ( opacity == "" || opacity == 1 ) {return true;}
- else{ return false; }
- }
- var table = document.querySelectorAll(' div>.table');
- for(x = 1; x < table.length; x++)
- {
- row = table.item(x);
- var row_buttons = row.querySelectorAll('icon-button');
- for (var i = 0; i < row_buttons.length; i++)
- {
- if(button_visible(row_buttons.item(i))){
- row_buttons.item(i).click();
- }
- }
- }"""
- driver.execute_script(js)
Add Comment
Please, Sign In to add comment