C# Selenium with PhantomJSDriver get image width and height (获取图片的长和高)

                //get image width and height
               var image=driver.FindElement(By.ClassName("it-Header_authorImage"));
               var width = image.Size.Width;
               var height = image.Size.Height;

  

posted @ 2017-12-06 19:01  公众号python学习开发  阅读(608)  评论(1编辑  收藏  举报