Hỏi đáp

Chia sẻ kiến thức, cùng nhau phát triển

Vấn đề profile Selenium

7 năm trước 1.316 lượt xem 1 bình luận 7 năm trước

Tình hình là em đang học tới bài profile Selenium, em copy - paste code nhưng lại phát sinh ra lỗi. Em đã seach google vẫn không sửa được lỗi. Mong anh chị em giúp đỡ.

Code: 

            FirefoxProfile firefoxProfile = new FirefoxProfile(@"C:\Users\Administrator\AppData\Roaming\Mozilla\Firefox\Profiles\uzgh5zjj.Vietnam");

            FirefoxDriver firefoxDriver = new FirefoxDriver(firefoxProfile);

Lỗi:

 cannot convert from 'OpenQA.Selenium.Firefox.FirefoxProfile' to 'OpenQA.Selenium.Firefox.FirefoxOptions'

Bình luận

Để bình luận, bạn cần đăng nhập bằng tài khoản Howkteam.

Đăng nhập
K9 SuperAdmin, KquizAdmin, KquizAuthor đã bình luận 7 năm trước

đổi profile thành option

 

Câu hỏi mới nhất