Using in cucumber - multiple scenarii #168
Replies: 1 comment 6 replies
-
Why are you trying to run this multithreaded? There's only 1 browser instance, and only 1 webdriver server, and it's stateful. So trying to execute commands from multiple threads is likely to land you in a world of pain. The particular error you're seeing suggests there is no such Also you don't need to wrap #[derive(Debug, Clone)]
pub struct WebDriver {
/// The underlying session handle.
pub handle: Arc<SessionHandle>,
} The only way multiple threads will work for you is to use multiple browsers, which just means multiple |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using thirtyfour with cucumber and I need a help to deal with multithread.
I try to keep Webdriver into World struct like this (since I do not want to reopen web session for each scenario)
But I do not get it working well when entering the next scenario. I pass Webdriver like this:
I always have an error:
Step panicked. Captured output: no such element: XPath(//span[contains(text(), 'Settings')])
How to correctly clone WebDriver, how to use it in a multithread purpose?
Beta Was this translation helpful? Give feedback.
All reactions